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

github.com/zwbetz-gh/cupper-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzwbetz-gh <zwbetz@gmail.com>2021-10-18 05:54:41 +0300
committerzwbetz-gh <zwbetz@gmail.com>2021-10-18 05:54:41 +0300
commitffdb78849edf02d5e6378fafe5b172150654901f (patch)
tree39a648ce84b3b58ab8aee97c310aaf0b7fc7f4ff /layouts
parent87e1a8608f44d46f6cc34fc54a4ddadbd2999433 (diff)
allow nav title text
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/header.html11
1 files changed, 8 insertions, 3 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 245d510..e5d06ec 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -6,9 +6,14 @@
href="{{ .Site.BaseURL }}"
aria-label="{{ .Site.Title }} home page"
>
- <img
- src="{{ "images/logo.svg" | relURL }}"
- alt="{{ .Site.Params.logoAlt | default "Logo" }}">
+ {{ with .Site.Params.navTitleText }}
+ <h1>{{ . }}</h1>
+ {{ else }}
+ <img
+ src="{{ "images/logo.svg" | relURL }}"
+ alt="{{ .Site.Params.logoAlt | default "Logo" }}"
+ >
+ {{ end }}
</a>
<p class="library-desc">
{{ with .Site.Params.description }} {{ . | markdownify }} {{ end }}