mirror of
https://github.com/rvtr/wiki.git
synced 2025-10-31 06:31:13 -04:00
Bold current page in sidebar
This commit is contained in:
parent
ab275368f0
commit
3b5b087285
@ -22,7 +22,7 @@ layout: compress
|
|||||||
<!-- First check for index -->
|
<!-- First check for index -->
|
||||||
{% for item in items %}
|
{% for item in items %}
|
||||||
{% if item.url contains "index.html" %}
|
{% if item.url contains "index.html" %}
|
||||||
<li {% unless item contains category %}class="li-bullet"{% endunless %}><a href="{{ item.url }}">{{ item.title }}</a></li>
|
<li class="{% unless item contains category %}li-bullet{% endunless %} {% if page.title == item.title %}fw-bold{% endif %}"><a href="{{ item.url }}">{{ item.title }}</a></li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
<!-- Then the other pages -->
|
<!-- Then the other pages -->
|
||||||
@ -40,7 +40,7 @@ layout: compress
|
|||||||
<summary>{{ category }}</summary>
|
<summary>{{ category }}</summary>
|
||||||
<ul>
|
<ul>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<li {% unless item contains category %}class="li-bullet"{% endunless %}><a href="{{ item.url }}">{{ item.title }}</a></li>
|
<li class="{% unless item contains category %}li-bullet{% endunless %} {% if page.title == item.title %}fw-bold{% endif %}"><a href="{{ item.url }}">{{ item.title }}</a></li>
|
||||||
{% endunless %}
|
{% endunless %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% if category %}
|
{% if category %}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user