Change indicator of current page

This commit is contained in:
cheddar 2025-04-17 08:57:50 -04:00
parent f3955f6322
commit 22cfae69db
No known key found for this signature in database

View file

@ -1,7 +1,4 @@
{% if page.url != post.url %} <a {%if page.url == post.url %}class="current-page"{% endif %}
<a href="{{ post.url }}">{{ post.data.title }}</a> href="{{ post.url }}">{{ post.data.title }}</a>
{% else %}
{{ post.data.title }}
{% endif %} -
<time datetime="{{ post.date | htmlDateString }}">{{ post.date | htmlDateString }}</time> <time datetime="{{ post.date | htmlDateString }}">{{ post.date | htmlDateString }}</time>
{% if post.data.description %}<p>{{ post.data.description }}</p>{% endif %} {% if post.data.description %}<p>{{ post.data.description }}</p>{% endif %}