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:
-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>