diff --git a/hugo.toml b/hugo.toml index ec17d76..4001df8 100644 --- a/hugo.toml +++ b/hugo.toml @@ -21,7 +21,13 @@ ShowToc = false [params.label] icon = "/apple-touch-icon.png" - text = ".dev" + text = " " + iconHeight = 40 + + [params.gitea] + icon = "/gitea_rtj_logo.png" + text = "git.rtj.dev" + site = "https://git.rtj.dev" iconHeight = 40 [params.assets] @@ -88,10 +94,5 @@ name = "Tags" url = "tags/" weight = 10 -[[languages.en.menu.main]] -name = "git.rtj.dev" -url = "https://git.rtj.dev" -weight = 15 - [outputs] home = [ "HTML", "RSS", "JSON" ] diff --git a/layouts/partials/header.html b/layouts/partials/header.html new file mode 100644 index 0000000..011957d --- /dev/null +++ b/layouts/partials/header.html @@ -0,0 +1,182 @@ +{{- /* theme-toggle is enabled */}} +{{- if (not site.Params.disableThemeToggle) }} +{{- /* theme is light */}} +{{- if (eq site.Params.defaultTheme "light") }} + +{{- /* theme is dark */}} +{{- else if (eq site.Params.defaultTheme "dark") }} + +{{- else }} +{{- /* theme is auto */}} + +{{- end }} +{{- /* theme-toggle is disabled and theme is auto */}} +{{- else if (and (ne site.Params.defaultTheme "light") (ne site.Params.defaultTheme "dark"))}} + +{{- end }} + +
+ +
diff --git a/static/gitea_rtj_logo.png b/static/gitea_rtj_logo.png new file mode 100644 index 0000000..ba116eb Binary files /dev/null and b/static/gitea_rtj_logo.png differ