fix: improve blog page post filtering
This commit is contained in:
@@ -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>
|
||||||
|
Reference in New Issue
Block a user