Skip to content

Commit 84d082d

Browse files
authored
Merge pull request #66 from hatappo/display-current-page-on-sidebar
display the current page on the sidebar to bold it
2 parents 7e7a3d1 + e91f322 commit 84d082d

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

themes/blue/html/base.html

+8-2
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,14 @@
5959
<div id="sidebar">
6060
<h3>Links</h3>
6161
<ul id="links">
62-
{% for page in sidebar-pages %}{% if not page.sidebar-omit? %}
63-
<li><a href="{{page.uri}}">{{page.title}}</a></li>
62+
{% for sidebar-page in sidebar-pages %}{% if not sidebar-page.sidebar-omit? %}
63+
<li>
64+
{% if page.uri = sidebar-page.uri %}
65+
<span style="font-weight: bold;">{{sidebar-page.title}}</span>
66+
{% else %}
67+
<a href="{{sidebar-page.uri}}">{{sidebar-page.title}}</a>
68+
{% endif %}
69+
</li>
6470
{% endif %}{% endfor %}
6571
</ul>
6672
{% if latest-posts|not-empty %}

0 commit comments

Comments
 (0)