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

github.com/EmielH/tale-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGavin Rehkemper <gavinr@users.noreply.github.com>2021-08-23 20:17:00 +0300
committerGitHub <noreply@github.com>2021-08-23 20:17:00 +0300
commit2feda5ab0a88439f7367dd40863ecc3f222f6709 (patch)
tree51dabc5046c5c45a36c7852e2db0e028dcf78b6f
parent6791ab0375c51065eda0a0d60049df2dbf776cc2 (diff)
Change site title to h1 on homepage
See #52 See #53
-rw-r--r--layouts/partials/header.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 487be9d..4c61fad 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -1,7 +1,11 @@
<nav class="nav">
<div class="nav-container">
<a href="{{ "/" | relURL }}">
- <h2 class="nav-title">{{ .Site.Title }}</h2>
+ {{ if .IsPage }}
+ <h2 class="nav-title">{{ .Site.Title }}</h2>
+ {{ else }}
+ <h1 class="nav-title">{{ .Site.Title }}</h1>
+ {{ end }}
</a>
{{ partial "header-menu.html" . }}
</div>