Public Access
1
0

fix: improve blog page post filtering

This commit is contained in:
2025-08-26 18:30:37 -04:00
parent b2f55c1b10
commit 819c5f3a6e

View File

@@ -8,7 +8,8 @@ eleventyExcludeFromCollections: true
<div class="space-y-8"> <div class="space-y-8">
{%- for post in collections.general | reverse -%} {%- for post in collections.general | reverse -%}
{%- if post.date <= page.date -%} {%- set draft = post.data.draft %}
{%- if not draft %}
<div class="card"> <div class="card">
<h2 class="text-2xl font-bold mb-1"> <h2 class="text-2xl font-bold mb-1">
<a href="{{ post.url }}" class="text-blue-400 hover:underline">{{ post.data.title }}</a> <a href="{{ post.url }}" class="text-blue-400 hover:underline">{{ post.data.title }}</a>