From 9bbf3a7f7a525b1ca4344858f027b26f3d2fb2f6 Mon Sep 17 00:00:00 2001 From: Sped0n Date: Wed, 1 Nov 2023 22:59:03 +0800 Subject: [PATCH] chore(hugo.toml): remove unused disableKinds to improve build performance chore(params.toml): add website title parameter for better customization chore(baseof.html): update page title to use the website title parameter chore(nav.html): update navigation link to use the website title parameter --- exampleSite/config/_default/hugo.toml | 1 - exampleSite/config/_default/params.toml | 3 ++- layouts/_default/baseof.html | 2 +- layouts/partials/nav.html | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/exampleSite/config/_default/hugo.toml b/exampleSite/config/_default/hugo.toml index 3753cfd..87dd0a5 100644 --- a/exampleSite/config/_default/hugo.toml +++ b/exampleSite/config/_default/hugo.toml @@ -1,5 +1,4 @@ baseURL = 'https://www.example.com/' -title = 'My New Hugo Site' themesdir = '../..' theme = 'Bridget' disableKinds = ["section", "taxonomy", "term", "home"] diff --git a/exampleSite/config/_default/params.toml b/exampleSite/config/_default/params.toml index 8b13789..0dd73ad 100644 --- a/exampleSite/config/_default/params.toml +++ b/exampleSite/config/_default/params.toml @@ -1 +1,2 @@ - +# website title +title = "Bridget" diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 729a235..505b553 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -3,7 +3,7 @@ - {{ .Title }} + {{ .Site.Params.title }} {{- partial "head/link.html" -}} {{- partial "head/meta.html" -}} {{- partial "head/seo.html" -}} diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html index d1fb87d..ad2144d 100644 --- a/layouts/partials/nav.html +++ b/layouts/partials/nav.html @@ -1,6 +1,6 @@