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"> <div class="sidebar">
<header class="sidebar__logo" role="banner"> <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> </header>
<nav class="sidebar__nav"> {% assign sections = "basics, tags, filters" | split: ", " %} <nav class="sidebar__nav"> {% assign sections = "basics, tags, filters" | split: ", " %}
+1
View File
@@ -69,6 +69,7 @@ body {
} }
.sidebar__logo { .sidebar__logo {
color: $color-white;
font-size: $base-font-size * 2; font-size: $base-font-size * 2;
font-weight: 300; font-weight: 300;
text-align: center; text-align: center;
+1
View File
@@ -1,6 +1,7 @@
--- ---
layout: default layout: default
title: ' ' title: ' '
home: true
description: Documentation for the Liquid template language, created by Shopify. description: Documentation for the Liquid template language, created by Shopify.
--- ---