Files
project-behind-the-desk/_includes/post_list.liquid
T

66 lines
3.1 KiB
Plaintext

<!-- Quick Tips Box -->
<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>
<!-- Post List -->
<div class="post-list space-y-4">
{% for post in site.posts %}
<div class="mb-4">
<article class="flex flex-col md:flex-row items-start">
<div class="flex-1 text-left">
<div>
<!-- Post Title -->
<p class="mt-0 mb-0.5">
<strong>
<a href="{{ post.url }}" class="text-text-title font-normal text-lg md:text-sm hover:underline">
{{ post.title }}
</a>
</strong>
</p>
<!-- Post Metadata -->
<div class="mt-2 mb-1 text-sm flex flex-col md:flex-row items-start md:items-center md:space-x-2">
<div class="flex items-start space-x-2 mb-2 md:mb-0">
<span class="bg-gray-200 text-gray-700 text-xs font-action px-4 py-2 rounded-full flex items-center">
<i class="fa-solid fa-arrow-up mr-1"></i> {{ post.upvotes }}
</span>
<span class="bg-gray-200 text-gray-700 text-xs font-action px-4 py-2 rounded-full flex items-center">
<i class="fas fa-reply mr-1"></i> REPLY
</span>
<span class="bg-gray-200 text-gray-700 text-xs font-action px-4 py-2 rounded-full flex items-center">
<i class="fas fa-comment mr-1"></i> {{ post.comments_count }}
</span>
</div>
<small class="text-sm font-action">
<a href="#" class="text-sm hover:underline">{{ post.author }}</a>
<span class="text-text-muted text-sm opacity-75">{{ post.date | date: "%d %b %Y" }}</span>
</small>
</div>
</div>
</div>
</article>
<hr class="border-border-light my-4">
</div>
{% endfor %}
</div>
<!-- More Link -->
<div class="mt-4 flex">
<div class="flex items-start mr-2" style="width: 24px;"></div>
<a href="#" class="text-primary hover:underline bg-primary-dark text-white px-4 py-2">More</a>
</div>