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:
authorAlexander Bilz <mail@alexbilz.com>2022-04-16 13:20:35 +0300
committerGitHub <noreply@github.com>2022-04-16 13:20:35 +0300
commit849a2f2d9bca2928df6e86e98576e4ec2988d65f (patch)
tree38cfb53c8007796347b1420c708006b9203794e5
parentfea51d13574212a94bc80190735dbdc2e35cfc26 (diff)
fix: remove double h1 tags (#347)
Closes #347
-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>