51 lines
2.5 KiB
Plaintext
51 lines
2.5 KiB
Plaintext
<div class="bg-rules-bg p-4 rounded mb-4 text-primary">
|
|
<p><strong>Quick Tips:</strong> Keep it brief, keep it real. Share your desk moments, finds, or frustrations. Upvote what resonates!</p>
|
|
</div>
|
|
|
|
<!-- Filter Container -->
|
|
<div id="filter-container" class="hidden">
|
|
<!-- Date Display -->
|
|
<div id="date-display" class="mb-4 text-text-muted hidden">
|
|
<p>Stories from <a href="#" class="text-primary hover:underline">April</a> <a href="#" class="text-primary hover:underline">24</a>, <a href="#" class="text-primary hover:underline">2025</a> (UTC)</p>
|
|
</div>
|
|
|
|
<!-- Filter Section -->
|
|
<div id="filter-section" class="mb-4 text-text-muted hidden">
|
|
<p id="filter-text"></p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="post-list space-y-4">
|
|
{% for post in site.posts %}
|
|
<div class="mb-4">
|
|
<article class="flex items-start">
|
|
<div class="flex flex-col items-center mr-4">
|
|
<button class="upvote-button text-text-muted hover:text-link-hover" aria-label="Upvote">
|
|
<i class="fa-solid fa-arrow-up"></i>
|
|
</button>
|
|
<span class="text-sm mt-1">{{ post.upvotes }}</span>
|
|
</div>
|
|
<div class="flex-1 text-left">
|
|
<div>
|
|
<p class="mt-0 mb-0.5">
|
|
<strong><a href="{{ post.url }}" class="text-text-title font-normal text-base hover:underline">{{ post.title }}</a></strong>
|
|
</p>
|
|
<div class="mt-0 mb-1 text-sm flex items-center">
|
|
<small class="text-xs font-action"><a href="#" class="text-xs hover:underline">{{ post.author }}</a> <span class="text-text-muted text-xs opacity-75">{{ post.date | date: "%d %b %Y" }}</span> <a href="#" class="text-text-muted text-xs hover:underline opacity-75">report</a> <a href="#" class="text-text-muted text-xs hover:underline opacity-75">reply</a> <a href="#" class="text-text-muted text-xs hover:underline opacity-75">{{ post.comments_count }} comments</a></small>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</article>
|
|
<hr class="border-border-light my-4">
|
|
</div>
|
|
{% endfor %}
|
|
</div> <!-- End post-list -->
|
|
|
|
<!-- More Link Section -->
|
|
<div class="mt-4 flex">
|
|
<div class="flex items-start mr-2" style="width: 24px;">
|
|
<!-- This empty div matches the width of the number/upvote area -->
|
|
</div>
|
|
<a href="#" class="text-primary hover:underline bg-primary-dark text-white px-4 py-2">More</a>
|
|
</div>
|