diff options
author | zwbetz-gh <zwbetz@gmail.com> | 2020-12-01 16:33:09 +0300 |
---|---|---|
committer | zwbetz-gh <zwbetz@gmail.com> | 2020-12-01 16:33:09 +0300 |
commit | 573b3dd0be2a4af66437e03ed8b7c149d202acb1 (patch) | |
tree | c73bebc91a9d3971f724eb2977c2afc9bb3d61f1 | |
parent | 633473c3e803520fa523394cd0fcf5fcf5bf5db9 (diff) |
param for navTitleLink
-rw-r--r-- | exampleSite/config.toml | 1 | ||||
-rw-r--r-- | exampleSite/config.yaml | 1 | ||||
-rw-r--r-- | layouts/partials/nav.html | 2 |
3 files changed, 3 insertions, 1 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 8cf70e3..a9a2bf2 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -23,6 +23,7 @@ disqusShortname = "yourdiscussshortname" homeMetaContent = "A Hugo theme made with PaperCSS, the less formal CSS framework." # For more date formats see https://gohugo.io/functions/format/ dateFormat = "Jan 2, 2006" + navTitleLink = "/" [menu] [[menu.nav]] diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml index 3ba3cef..dfd7283 100644 --- a/exampleSite/config.yaml +++ b/exampleSite/config.yaml @@ -23,6 +23,7 @@ params: homeMetaContent: A Hugo theme made with PaperCSS, the less formal CSS framework. # For more date formats see https://gohugo.io/functions/format/ dateFormat: Jan 2, 2006 + navTitleLink: / menu: nav: diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html index be42b65..93cb4e2 100644 --- a/layouts/partials/nav.html +++ b/layouts/partials/nav.html @@ -1,6 +1,6 @@ <nav class="border split-nav"> <div class="nav-brand"> - <h3><a href="/">{{ .Site.Title }}</a></h3> + <h3><a href="{{ .Site.Params.navTitleLink | default "/" }}">{{ .Site.Title }}</a></h3> </div> <div class="collapsible"> <input id="collapsible1" type="checkbox" name="collapsible1"> |