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

github.com/the2ne/hugo-frais.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/header.html')
-rw-r--r--layouts/partials/header.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index ec2f432..4c5d57d 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -1,7 +1,7 @@
<header class="headline" role="banner">
{{ if .IsHome }}
- <span class="headline__title">{{ .Site.Params.headline }}</span>
+ {{ with .Site.Params.headline }}<span class="headline__title">{{ . }}</span>{{ end }}
{{ else }}
- <a class="headline__title" href="{{ .Site.BaseURL }}">{{ .Site.Params.headline }}</a>
+ {{ if .Site.Params.headline }}<a class="headline__title" href="{{ .Site.BaseURL }}">{{ .Site.Params.headline }}</a>{{ end }}
{{ end }}
</header>