Skip to content

Commit 0788fa5

Browse files
committed
fix: logo navigation
1 parent 09170b9 commit 0788fa5

File tree

1 file changed

+14
-20
lines changed

1 file changed

+14
-20
lines changed

_includes/sidebar.html

+14-20
Original file line numberDiff line numberDiff line change
@@ -2,33 +2,27 @@
22
<div class="container sidebar-sticky">
33
<div class="sidebar-about">
44
<h1>
5-
<a href="{{ site.baseurl }}">
5+
<a href="/">
66
{{ site.title }}
77
</a>
88
</h1>
99
<p class="lead">{{ site.description }}</p>
1010
</div>
1111

1212
<nav class="sidebar-nav">
13-
<a class="sidebar-nav-item{% if page.url == site.baseurl %} active{% endif %}" href="{{ site.baseurl }}">Home</a>
13+
<a class="sidebar-nav-item{% if page.url == site.baseurl %} active{% endif %}" href="/">Home</a>
14+
{% comment %} The code below dynamically generates a sidebar nav of pages with `layout: page` in the front-matter.
15+
See readme
16+
for usage. {% endcomment %} {% assign pages_list = site.pages | sort:"weight" %} {% for node in pages_list %}
17+
{% if node.title != null %} {% if node.showInNav == true %}
18+
<a class="sidebar-nav-item{% if page.url == node.url %} active{% endif %}"
19+
href="{{ node.url }}">{{ node.title }}</a> {% endif %} {% endif %} {% endfor %}
20+
</nav>
21+
<a href="https://github.com/fdlane" target="_blank"><span
22+
class="icon icon--github">{% include icon-github.svg %}</span></a>
1423

15-
{% comment %}
16-
The code below dynamically generates a sidebar nav of pages with
17-
`layout: page` in the front-matter. See readme for usage.
18-
{% endcomment %}
24+
<a href="https://twitter.com/fdlane" target="_blank"><span
25+
class="icon icon--twitter">{% include icon-twitter.svg %}</span></a>
1926

20-
{% assign pages_list = site.pages | sort:"weight" %}
21-
{% for node in pages_list %}
22-
{% if node.title != null %}
23-
{% if node.showInNav == true %}
24-
<a class="sidebar-nav-item{% if page.url == node.url %} active{% endif %}" href="{{ node.url }}">{{ node.title }}</a>
25-
{% endif %}
26-
{% endif %}
27-
{% endfor %}
28-
</nav>
29-
<a href="https://github.com/fdlane" target="_blank"><span class="icon icon--github">{% include icon-github.svg %}</span></a>
30-
31-
<a href="https://twitter.com/fdlane" target="_blank"><span class="icon icon--twitter">{% include icon-twitter.svg %}</span></a>
32-
3327
</div>
34-
</div>
28+
</div>

0 commit comments

Comments
 (0)