Change indicator of current page
This commit is contained in:
parent
f3955f6322
commit
22cfae69db
1 changed files with 2 additions and 5 deletions
|
@ -1,7 +1,4 @@
|
|||
{% if page.url != post.url %}
|
||||
<a href="{{ post.url }}">{{ post.data.title }}</a>
|
||||
{% else %}
|
||||
{{ post.data.title }}
|
||||
{% endif %} -
|
||||
<a {%if page.url == post.url %}class="current-page"{% endif %}
|
||||
href="{{ post.url }}">{{ post.data.title }}</a>
|
||||
<time datetime="{{ post.date | htmlDateString }}">{{ post.date | htmlDateString }}</time>
|
||||
{% if post.data.description %}<p>{{ post.data.description }}</p>{% endif %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue