Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/lxndrblz/anatole.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/sidebar.html')
-rw-r--r--layouts/partials/sidebar.html14
1 files changed, 11 insertions, 3 deletions
diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html
index e22ea1b..e6df16f 100644
--- a/layouts/partials/sidebar.html
+++ b/layouts/partials/sidebar.html
@@ -14,9 +14,17 @@
src="{{ .Site.Params.profilePicture | relURL }}"
alt="profile picture"
/>
- <h1 class="sidebar__introduction-title">
- <a href="{{ .Site.BaseURL | relLangURL }}">{{ .Site.Params.Title }}</a>
- </h1>
+ {{ if .IsHome }}
+ <h1 class="sidebar__introduction-title">
+ <a href="{{ .Site.BaseURL | relLangURL }}">{{ .Site.Params.Title }}</a>
+ </h1>
+
+ {{ else }}
+ <div class="sidebar__introduction-title">
+ <a href="{{ .Site.BaseURL | relLangURL }}">{{ .Site.Params.Title }}</a>
+ </div>
+
+ {{ end }}
<div class="sidebar__introduction-description">
<p>{{ replace .Site.Params.description "\n" "<br />" | safeHTML }}</p>
</div>