feat: Update feed HTML structure in index, past, and nearby pages

This commit is contained in:
Your Name (aider) committed 2025-04-28 03:30:32 +08:00
1 parent b94e1f2e62
commit 4a629b0d82
3 files changed
+216 -210

No files matched your search

+72 -70
View File
@@ -61,98 +61,100 @@
<!-- Post 1 --> <!-- Post 1 -->
<div class="mb-4"> <div class="mb-4">
<article class="flex"> <article class="flex">
<div class="mr-2 pt-0.5"> <div class="mr-2">
<a href="#" class="text-text-muted no-underline text-sm leading-none inline-block hover:text-link-hover" title="Upvote">▲</a> <a href="#" class="text-text-muted no-underline text-sm leading-none inline-block pt-0.5 hover:text-link-hover" title="Upvote">▲</a>
</div> </div>
<div class="flex-1 text-left"> <div class="flex-1 text-left">
<div> <div>
<p> <p>
<a href="#" class="text-text-title font-normal text-base hover:underline">The saga of the disappearing ergonomic chair continues. <span class="update-tick">✏️</span></a> <strong><a href="#" class="text-text-title font-normal text-base hover:underline">[Ask] The saga of the disappearing ergonomic chair continues.</a></strong>
<small class="text-text-muted ml-2 text-sm">@deskdetective</small> </p>
<small class="text-text-muted ml-2 text-sm">1h ago</small>
</p> <!-- Post title header -->
<div class="mt-0.5 mb-2 text-sm flex items-center">
<small class="text-text-muted ml-2 text-sm hover:underline">@deskdetective</small>
<small class="text-text-muted ml-2 text-sm">1h ago</small>
<a href="#" class="ml-2 text-xs text-primary hover:underline">report</a>
<a href="#" class="ml-2 text-xs text-primary hover:underline">next</a>
</div>
</div>
</div> </div>
<nav class="flex justify-between items-center mt-1 text-sm">
<div class="flex">
<!-- Meta info like points could go here later -->
</div>
<div class="flex">
<small><a href="#" class="text-primary hover:underline">5 comments</a></small>
</div>
</nav>
</div>
</article> </article>
</div> </div>
<!-- Post 2 --> <!-- Post 2 -->
<div class="mb-4"> <div class="mb-4">
<article class="flex"> <article class="flex">
<div class="mr-2 pt-0.5"> <div class="mr-2">
<a href="#" class="text-text-muted no-underline text-sm leading-none inline-block hover:text-link-hover" title="Upvote">▲</a> <a href="#" class="text-text-muted no-underline text-sm leading-none inline-block pt-0.5 hover:text-link-hover" title="Upvote">▲</a>
</div> </div>
<div class="flex-1 text-left"> <div class="flex-1 text-left">
<div> <div>
<p> <p>
<a href="#" class="text-text-title font-normal text-base hover:underline">Found the perfect focus playlist. <span class="update-tick">✏️</span></a> <strong><a href="#" class="text-text-title font-normal text-base hover:underline">Found the perfect focus playlist.</a></strong>
<small class="text-text-muted ml-2 text-sm">@flowstatefiend</small> </p>
<small class="text-text-muted ml-2 text-sm">3h ago</small>
</p> <!-- Post title header -->
<div class="mt-0.5 mb-2 text-sm flex items-center">
<small class="text-text-muted ml-2 text-sm hover:underline">@flowstatefiend</small>
<small class="text-text-muted ml-2 text-sm">3h ago</small>
<a href="#" class="ml-2 text-xs text-primary hover:underline">report</a>
<a href="#" class="ml-2 text-xs text-primary hover:underline">next</a>
</div>
</div>
</div> </div>
<nav class="flex justify-between items-center mt-1 text-sm">
<div class="flex"></div>
<div class="flex">
<small><a href="#" class="text-primary hover:underline">12 comments</a></small>
</div>
</nav>
</div>
</article> </article>
</div> </div>
<!-- Post 3 --> <!-- Post 3 -->
<div class="mb-4"> <div class="mb-4">
<article class="flex"> <article class="flex">
<div class="mr-2 pt-0.5"> <div class="mr-2">
<a href="#" class="text-text-muted no-underline text-sm leading-none inline-block hover:text-link-hover" title="Upvote">▲</a> <a href="#" class="text-text-muted no-underline text-sm leading-none inline-block pt-0.5 hover:text-link-hover" title="Upvote">▲</a>
</div> </div>
<div class="flex-1 text-left"> <div class="flex-1 text-left">
<div> <div>
<p> <p>
<a href="#" class="text-text-title font-normal text-base hover:underline">Overheard near the coffee machine... <span class="update-tick">✏️</span></a> <strong><a href="#" class="text-text-title font-normal text-base hover:underline">Overheard near the coffee machine...</a></strong>
<small class="text-text-muted ml-2 text-sm">@wallflower</small> </p>
<small class="text-text-muted ml-2 text-sm">5h ago</small>
</p> <!-- Post title header -->
<div class="mt-0.5 mb-2 text-sm flex items-center">
<small class="text-text-muted ml-2 text-sm hover:underline">@wallflower</small>
<small class="text-text-muted ml-2 text-sm">5h ago</small>
<a href="#" class="ml-2 text-xs text-primary hover:underline">report</a>
<a href="#" class="ml-2 text-xs text-primary hover:underline">next</a>
</div>
</div>
</div> </div>
<nav class="flex justify-between items-center mt-1 text-sm">
<div class="flex"></div>
<div class="flex">
<small><a href="#" class="text-primary hover:underline">2 comments</a></small>
</div>
</nav>
</div>
</article> </article>
</div> </div>
<!-- Post 4 --> <!-- Post 4 -->
<div class="mb-4"> <div class="mb-4">
<article class="flex"> <article class="flex">
<div class="mr-2 pt-0.5"> <div class="mr-2">
<a href="#" class="text-text-muted no-underline text-sm leading-none inline-block hover:text-link-hover" title="Upvote">▲</a> <a href="#" class="text-text-muted no-underline text-sm leading-none inline-block pt-0.5 hover:text-link-hover" title="Upvote">▲</a>
</div> </div>
<div class="flex-1 text-left"> <div class="flex-1 text-left">
<div> <div>
<p> <p>
<a href="#" class="text-text-title font-normal text-base hover:underline">My standing desk setup 📸 <span class="update-tick">✏️</span></a> <strong><a href="#" class="text-text-title font-normal text-base hover:underline">My standing desk setup 📸</a></strong>
<small class="text-text-muted ml-2 text-sm">@setupstylist</small> </p>
<small class="text-text-muted ml-2 text-sm">1d ago</small>
</p> <!-- Post title header -->
<div class="mt-0.5 mb-2 text-sm flex items-center">
<small class="text-text-muted ml-2 text-sm hover:underline">@setupstylist</small>
<small class="text-text-muted ml-2 text-sm">1d ago</small>
<a href="#" class="ml-2 text-xs text-primary hover:underline">report</a>
<a href="#" class="ml-2 text-xs text-primary hover:underline">next</a>
</div>
</div>
</div> </div>
<nav class="flex justify-between items-center mt-1 text-sm">
<div class="flex"></div>
<div class="flex">
<small><a href="#" class="text-primary hover:underline">8 comments</a></small>
</div>
</nav>
</div>
</article> </article>
</div> </div>
</div> <!-- End post-list --> </div> <!-- End post-list -->
+72 -70
View File
@@ -70,98 +70,100 @@
<!-- Post 1 --> <!-- Post 1 -->
<div class="mb-4"> <div class="mb-4">
<article class="flex"> <article class="flex">
<div class="mr-2 pt-0.5"> <div class="mr-2">
<a href="#" class="text-text-muted no-underline text-sm leading-none inline-block hover:text-link-hover" title="Upvote">▲</a> <a href="#" class="text-text-muted no-underline text-sm leading-none inline-block pt-0.5 hover:text-link-hover" title="Upvote">▲</a>
</div> </div>
<div class="flex-1 text-left"> <div class="flex-1 text-left">
<div> <div>
<p> <p>
<a href="#" class="text-text-title font-normal text-base hover:underline">The saga of the disappearing ergonomic chair continues. <span class="update-tick">✏️</span></a> <strong><a href="#" class="text-text-title font-normal text-base hover:underline">[Ask] The saga of the disappearing ergonomic chair continues.</a></strong>
<small class="text-text-muted ml-2 text-sm">@deskdetective</small> </p>
<small class="text-text-muted ml-2 text-sm">1h ago</small>
</p> <!-- Post title header -->
<div class="mt-0.5 mb-2 text-sm flex items-center">
<small class="text-text-muted ml-2 text-sm hover:underline">@deskdetective</small>
<small class="text-text-muted ml-2 text-sm">1h ago</small>
<a href="#" class="ml-2 text-xs text-primary hover:underline">report</a>
<a href="#" class="ml-2 text-xs text-primary hover:underline">next</a>
</div>
</div>
</div> </div>
<nav class="flex justify-between items-center mt-1 text-sm">
<div class="flex">
<!-- Meta info like points could go here later -->
</div>
<div class="flex">
<small><a href="#" class="text-primary hover:underline">5 comments</a></small>
</div>
</nav>
</div>
</article> </article>
</div> </div>
<!-- Post 2 --> <!-- Post 2 -->
<div class="mb-4"> <div class="mb-4">
<article class="flex"> <article class="flex">
<div class="mr-2 pt-0.5"> <div class="mr-2">
<a href="#" class="text-text-muted no-underline text-sm leading-none inline-block hover:text-link-hover" title="Upvote">▲</a> <a href="#" class="text-text-muted no-underline text-sm leading-none inline-block pt-0.5 hover:text-link-hover" title="Upvote">▲</a>
</div> </div>
<div class="flex-1 text-left"> <div class="flex-1 text-left">
<div> <div>
<p> <p>
<a href="#" class="text-text-title font-normal text-base hover:underline">Found the perfect focus playlist. <span class="update-tick">✏️</span></a> <strong><a href="#" class="text-text-title font-normal text-base hover:underline">Found the perfect focus playlist.</a></strong>
<small class="text-text-muted ml-2 text-sm">@flowstatefiend</small> </p>
<small class="text-text-muted ml-2 text-sm">3h ago</small>
</p> <!-- Post title header -->
<div class="mt-0.5 mb-2 text-sm flex items-center">
<small class="text-text-muted ml-2 text-sm hover:underline">@flowstatefiend</small>
<small class="text-text-muted ml-2 text-sm">3h ago</small>
<a href="#" class="ml-2 text-xs text-primary hover:underline">report</a>
<a href="#" class="ml-2 text-xs text-primary hover:underline">next</a>
</div>
</div>
</div> </div>
<nav class="flex justify-between items-center mt-1 text-sm">
<div class="flex"></div>
<div class="flex">
<small><a href="#" class="text-primary hover:underline">12 comments</a></small>
</div>
</nav>
</div>
</article> </article>
</div> </div>
<!-- Post 3 --> <!-- Post 3 -->
<div class="mb-4"> <div class="mb-4">
<article class="flex"> <article class="flex">
<div class="mr-2 pt-0.5"> <div class="mr-2">
<a href="#" class="text-text-muted no-underline text-sm leading-none inline-block hover:text-link-hover" title="Upvote">▲</a> <a href="#" class="text-text-muted no-underline text-sm leading-none inline-block pt-0.5 hover:text-link-hover" title="Upvote">▲</a>
</div> </div>
<div class="flex-1 text-left"> <div class="flex-1 text-left">
<div> <div>
<p> <p>
<a href="#" class="text-text-title font-normal text-base hover:underline">Overheard near the coffee machine... <span class="update-tick">✏️</span></a> <strong><a href="#" class="text-text-title font-normal text-base hover:underline">Overheard near the coffee machine...</a></strong>
<small class="text-text-muted ml-2 text-sm">@wallflower</small> </p>
<small class="text-text-muted ml-2 text-sm">5h ago</small>
</p> <!-- Post title header -->
<div class="mt-0.5 mb-2 text-sm flex items-center">
<small class="text-text-muted ml-2 text-sm hover:underline">@wallflower</small>
<small class="text-text-muted ml-2 text-sm">5h ago</small>
<a href="#" class="ml-2 text-xs text-primary hover:underline">report</a>
<a href="#" class="ml-2 text-xs text-primary hover:underline">next</a>
</div>
</div>
</div> </div>
<nav class="flex justify-between items-center mt-1 text-sm">
<div class="flex"></div>
<div class="flex">
<small><a href="#" class="text-primary hover:underline">2 comments</a></small>
</div>
</nav>
</div>
</article> </article>
</div> </div>
<!-- Post 4 --> <!-- Post 4 -->
<div class="mb-4"> <div class="mb-4">
<article class="flex"> <article class="flex">
<div class="mr-2 pt-0.5"> <div class="mr-2">
<a href="#" class="text-text-muted no-underline text-sm leading-none inline-block hover:text-link-hover" title="Upvote">▲</a> <a href="#" class="text-text-muted no-underline text-sm leading-none inline-block pt-0.5 hover:text-link-hover" title="Upvote">▲</a>
</div> </div>
<div class="flex-1 text-left"> <div class="flex-1 text-left">
<div> <div>
<p> <p>
<a href="#" class="text-text-title font-normal text-base hover:underline">My standing desk setup 📸 <span class="update-tick">✏️</span></a> <strong><a href="#" class="text-text-title font-normal text-base hover:underline">My standing desk setup 📸</a></strong>
<small class="text-text-muted ml-2 text-sm">@setupstylist</small> </p>
<small class="text-text-muted ml-2 text-sm">1d ago</small>
</p> <!-- Post title header -->
<div class="mt-0.5 mb-2 text-sm flex items-center">
<small class="text-text-muted ml-2 text-sm hover:underline">@setupstylist</small>
<small class="text-text-muted ml-2 text-sm">1d ago</small>
<a href="#" class="ml-2 text-xs text-primary hover:underline">report</a>
<a href="#" class="ml-2 text-xs text-primary hover:underline">next</a>
</div>
</div>
</div> </div>
<nav class="flex justify-between items-center mt-1 text-sm">
<div class="flex"></div>
<div class="flex">
<small><a href="#" class="text-primary hover:underline">8 comments</a></small>
</div>
</nav>
</div>
</article> </article>
</div> </div>
</div> <!-- End post-list --> </div> <!-- End post-list -->
+72 -70
View File
@@ -70,98 +70,100 @@
<!-- Post 1 --> <!-- Post 1 -->
<div class="mb-4"> <div class="mb-4">
<article class="flex"> <article class="flex">
<div class="mr-2 pt-0.5"> <div class="mr-2">
<a href="#" class="text-text-muted no-underline text-sm leading-none inline-block hover:text-link-hover" title="Upvote">▲</a> <a href="#" class="text-text-muted no-underline text-sm leading-none inline-block pt-0.5 hover:text-link-hover" title="Upvote">▲</a>
</div> </div>
<div class="flex-1 text-left"> <div class="flex-1 text-left">
<div> <div>
<p> <p>
<a href="#" class="text-text-title font-normal text-base hover:underline">The saga of the disappearing ergonomic chair continues. <span class="update-tick">✏️</span></a> <strong><a href="#" class="text-text-title font-normal text-base hover:underline">[Ask] The saga of the disappearing ergonomic chair continues.</a></strong>
<small class="text-text-muted ml-2 text-sm">@deskdetective</small> </p>
<small class="text-text-muted ml-2 text-sm">1h ago</small>
</p> <!-- Post title header -->
<div class="mt-0.5 mb-2 text-sm flex items-center">
<small class="text-text-muted ml-2 text-sm hover:underline">@deskdetective</small>
<small class="text-text-muted ml-2 text-sm">1h ago</small>
<a href="#" class="ml-2 text-xs text-primary hover:underline">report</a>
<a href="#" class="ml-2 text-xs text-primary hover:underline">next</a>
</div>
</div>
</div> </div>
<nav class="flex justify-between items-center mt-1 text-sm">
<div class="flex">
<!-- Meta info like points could go here later -->
</div>
<div class="flex">
<small><a href="#" class="text-primary hover:underline">5 comments</a></small>
</div>
</nav>
</div>
</article> </article>
</div> </div>
<!-- Post 2 --> <!-- Post 2 -->
<div class="mb-4"> <div class="mb-4">
<article class="flex"> <article class="flex">
<div class="mr-2 pt-0.5"> <div class="mr-2">
<a href="#" class="text-text-muted no-underline text-sm leading-none inline-block hover:text-link-hover" title="Upvote">▲</a> <a href="#" class="text-text-muted no-underline text-sm leading-none inline-block pt-0.5 hover:text-link-hover" title="Upvote">▲</a>
</div> </div>
<div class="flex-1 text-left"> <div class="flex-1 text-left">
<div> <div>
<p> <p>
<a href="#" class="text-text-title font-normal text-base hover:underline">Found the perfect focus playlist. <span class="update-tick">✏️</span></a> <strong><a href="#" class="text-text-title font-normal text-base hover:underline">Found the perfect focus playlist.</a></strong>
<small class="text-text-muted ml-2 text-sm">@flowstatefiend</small> </p>
<small class="text-text-muted ml-2 text-sm">3h ago</small>
</p> <!-- Post title header -->
<div class="mt-0.5 mb-2 text-sm flex items-center">
<small class="text-text-muted ml-2 text-sm hover:underline">@flowstatefiend</small>
<small class="text-text-muted ml-2 text-sm">3h ago</small>
<a href="#" class="ml-2 text-xs text-primary hover:underline">report</a>
<a href="#" class="ml-2 text-xs text-primary hover:underline">next</a>
</div>
</div>
</div> </div>
<nav class="flex justify-between items-center mt-1 text-sm">
<div class="flex"></div>
<div class="flex">
<small><a href="#" class="text-primary hover:underline">12 comments</a></small>
</div>
</nav>
</div>
</article> </article>
</div> </div>
<!-- Post 3 --> <!-- Post 3 -->
<div class="mb-4"> <div class="mb-4">
<article class="flex"> <article class="flex">
<div class="mr-2 pt-0.5"> <div class="mr-2">
<a href="#" class="text-text-muted no-underline text-sm leading-none inline-block hover:text-link-hover" title="Upvote">▲</a> <a href="#" class="text-text-muted no-underline text-sm leading-none inline-block pt-0.5 hover:text-link-hover" title="Upvote">▲</a>
</div> </div>
<div class="flex-1 text-left"> <div class="flex-1 text-left">
<div> <div>
<p> <p>
<a href="#" class="text-text-title font-normal text-base hover:underline">Overheard near the coffee machine... <span class="update-tick">✏️</span></a> <strong><a href="#" class="text-text-title font-normal text-base hover:underline">Overheard near the coffee machine...</a></strong>
<small class="text-text-muted ml-2 text-sm">@wallflower</small> </p>
<small class="text-text-muted ml-2 text-sm">5h ago</small>
</p> <!-- Post title header -->
<div class="mt-0.5 mb-2 text-sm flex items-center">
<small class="text-text-muted ml-2 text-sm hover:underline">@wallflower</small>
<small class="text-text-muted ml-2 text-sm">5h ago</small>
<a href="#" class="ml-2 text-xs text-primary hover:underline">report</a>
<a href="#" class="ml-2 text-xs text-primary hover:underline">next</a>
</div>
</div>
</div> </div>
<nav class="flex justify-between items-center mt-1 text-sm">
<div class="flex"></div>
<div class="flex">
<small><a href="#" class="text-primary hover:underline">2 comments</a></small>
</div>
</nav>
</div>
</article> </article>
</div> </div>
<!-- Post 4 --> <!-- Post 4 -->
<div class="mb-4"> <div class="mb-4">
<article class="flex"> <article class="flex">
<div class="mr-2 pt-0.5"> <div class="mr-2">
<a href="#" class="text-text-muted no-underline text-sm leading-none inline-block hover:text-link-hover" title="Upvote">▲</a> <a href="#" class="text-text-muted no-underline text-sm leading-none inline-block pt-0.5 hover:text-link-hover" title="Upvote">▲</a>
</div> </div>
<div class="flex-1 text-left"> <div class="flex-1 text-left">
<div> <div>
<p> <p>
<a href="#" class="text-text-title font-normal text-base hover:underline">My standing desk setup 📸 <span class="update-tick">✏️</span></a> <strong><a href="#" class="text-text-title font-normal text-base hover:underline">My standing desk setup 📸</a></strong>
<small class="text-text-muted ml-2 text-sm">@setupstylist</small> </p>
<small class="text-text-muted ml-2 text-sm">1d ago</small>
</p> <!-- Post title header -->
<div class="mt-0.5 mb-2 text-sm flex items-center">
<small class="text-text-muted ml-2 text-sm hover:underline">@setupstylist</small>
<small class="text-text-muted ml-2 text-sm">1d ago</small>
<a href="#" class="ml-2 text-xs text-primary hover:underline">report</a>
<a href="#" class="ml-2 text-xs text-primary hover:underline">next</a>
</div>
</div>
</div> </div>
<nav class="flex justify-between items-center mt-1 text-sm">
<div class="flex"></div>
<div class="flex">
<small><a href="#" class="text-primary hover:underline">8 comments</a></small>
</div>
</nav>
</div>
</article> </article>
</div> </div>
</div> <!-- End post-list --> </div> <!-- End post-list -->