Avoid link to self on homepage

This commit is contained in:
Frank Taillandier
2018-03-29 16:25:08 +02:00
parent 8959afe1a8
commit 9ac8895a1b
3 changed files with 7 additions and 1 deletions
+5 -1
View File
@@ -1,6 +1,10 @@
<div class="sidebar">
<header class="sidebar__logo" role="banner">
<a href="{{ "/" | prepend: site.baseurl }}">Liquid</a>
{% if page.home %}
Liquid
{% else %}
<a href="{{ "/" | relative_url }}">Liquid</a>
{% endif %}
</header>
<nav class="sidebar__nav"> {% assign sections = "basics, tags, filters" | split: ", " %}