diff options
author | Alexander Bilz <mail@alexbilz.com> | 2022-04-16 13:20:35 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-16 13:20:35 +0300 |
commit | 849a2f2d9bca2928df6e86e98576e4ec2988d65f (patch) | |
tree | 38cfb53c8007796347b1420c708006b9203794e5 | |
parent | fea51d13574212a94bc80190735dbdc2e35cfc26 (diff) |
fix: remove double h1 tags (#347)
Closes #347
-rw-r--r-- | layouts/partials/sidebar.html | 14 |
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> |