crisp-theme.git

git clone https://git.crispbyte.dev/crisp-theme.git

commit
22cfae6
parent
f3955f6
author
cheddar
date
2025-04-17 14:57:50 +0200 CEST
Change indicator of current page
1 files changed,  +2, -5
M _includes/post_link.njk
+2, -5
 1@@ -1,7 +1,4 @@
 2-{% if page.url != post.url %}
 3-<a href="{{ post.url }}">{{ post.data.title }}</a>
 4-{% else %}
 5-{{ post.data.title }}
 6-{% endif %} -
 7+<a {%if page.url == post.url %}class="current-page"{% endif %}
 8+  href="{{ post.url }}">{{ post.data.title }}</a>
 9 <time datetime="{{ post.date | htmlDateString }}">{{ post.date | htmlDateString }}</time>
10 {% if post.data.description %}<p>{{ post.data.description }}</p>{% endif %}