Public Access
1
0

feat: hide future posts in blog page

This commit is contained in:
2025-08-26 00:26:25 -04:00
parent 3a96b683cd
commit fc7e3bf56c

View File

@@ -8,6 +8,7 @@ eleventyExcludeFromCollections: true
<div class="space-y-8">
{%- for post in collections.general | reverse -%}
{%- if post.date <= page.date -%}
<div class="card">
<h2 class="text-2xl font-bold mb-1">
<a href="{{ post.url }}" class="text-blue-400 hover:underline">{{ post.data.title }}</a>
@@ -23,6 +24,7 @@ eleventyExcludeFromCollections: true
<p class="text-gray-300">{{ post.data.excerpt }}</p>
{% endif %}
</div>
{%- endif -%}
{%- endfor -%}
</div>
<script src="/js/view-counter.js"></script>