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
This commit is contained in:
Sped0n
2023-11-01 22:59:03 +08:00
parent eb3c91d017
commit 9bbf3a7f7a
4 changed files with 4 additions and 4 deletions

View File

@@ -1,5 +1,4 @@
baseURL = 'https://www.example.com/' baseURL = 'https://www.example.com/'
title = 'My New Hugo Site'
themesdir = '../..' themesdir = '../..'
theme = 'Bridget' theme = 'Bridget'
disableKinds = ["section", "taxonomy", "term", "home"] disableKinds = ["section", "taxonomy", "term", "home"]

View File

@@ -1 +1,2 @@
# website title
title = "Bridget"

View File

@@ -3,7 +3,7 @@
<head> <head>
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>{{ .Title }}</title> <title>{{ .Site.Params.title }}</title>
{{- partial "head/link.html" -}} {{- partial "head/link.html" -}}
{{- partial "head/meta.html" -}} {{- partial "head/meta.html" -}}
{{- partial "head/seo.html" -}} {{- partial "head/seo.html" -}}

View File

@@ -1,6 +1,6 @@
<nav> <nav>
<div class="navArtist"> <div class="navArtist">
<a href="/">Bridget Baker</a> <a href="/">{{ .Site.Params.title }}</a>
</div> </div>
<div class="links"> <div class="links">
{{- $index := 0 -}} {{- $index := 0 -}}