Skip to content

Commit f537f28

Browse files
committed
Take user to home page when clicking menu bar app icon on subpages
1 parent 97f04ea commit f537f28

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

_includes/header.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@
88
</clipPath>
99
</defs>
1010
</svg>
11-
<a href="../" target="_self"><img class="headerIcon" src="{{ site.app_icon }}"></a>
11+
{% if page.url != '/' %}
12+
<a href="../" target="_self"><img class="headerIcon" src="{{ site.app_icon }}"></a>
13+
{% else %}
14+
<img class="headerIcon" src="{{ site.app_icon }}">
15+
{% endif %}
1216
</div>
1317
<p class="headerName">{{ site.app_name }}</p>
1418
</div>

0 commit comments

Comments
 (0)