From e173ed389d0e5c7280fd0c860ad7b1b3d328d39f Mon Sep 17 00:00:00 2001 From: Tobias Gesellchen Date: Sun, 24 May 2026 23:46:31 +0200 Subject: [PATCH] =?UTF-8?q?feat(docs):=20branding=20=E2=80=94=20logo,=20fa?= =?UTF-8?q?vicon,=20subtitle,=20and=20footer?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Enable navbar logo (favicon-braille.svg, 24×24) - Override navbar-title partial to add 'Bose SoundTouch Toolkit' subtitle - Add favicon.svg to static root (picked up by Hextra head automatically) - Custom footer: sponsor link (left) + copyright (right) in a single row - i18n/en.yaml: copyright text with link to github.com/gesellix - hugo.toml: blog list sorted by date desc, tags enabled Co-Authored-By: Claude Sonnet 4.6 --- docs/hugo.toml | 15 +++++++++++++-- docs/i18n/en.yaml | 1 + docs/layouts/_partials/custom/footer.html | 14 ++++++++++++++ docs/layouts/_partials/navbar-title.html | 19 +++++++++++++++++++ docs/static/favicon.svg | 12 ++++++++++++ docs/static/images/logo.svg | 12 ++++++++++++ 6 files changed, 71 insertions(+), 2 deletions(-) create mode 100644 docs/i18n/en.yaml create mode 100644 docs/layouts/_partials/custom/footer.html create mode 100644 docs/layouts/_partials/navbar-title.html create mode 100644 docs/static/favicon.svg create mode 100644 docs/static/images/logo.svg diff --git a/docs/hugo.toml b/docs/hugo.toml index 4438c75..0505a48 100644 --- a/docs/hugo.toml +++ b/docs/hugo.toml @@ -35,13 +35,24 @@ disablePathToLower = true [params.navbar] displayTitle = true - displayLogo = false + displayLogo = true + + [params.navbar.logo] + path = "images/logo.svg" + width = "24" + height = "24" [params.footer] enable = true - displayCopyright = true + displayCopyright = false displayPoweredBy = false + [params.blog] + [params.blog.list] + displayTags = true + sortBy = "date" + sortOrder = "desc" + [[menu.main]] identifier = "docs" name = "Docs" diff --git a/docs/i18n/en.yaml b/docs/i18n/en.yaml new file mode 100644 index 0000000..9e2c9ad --- /dev/null +++ b/docs/i18n/en.yaml @@ -0,0 +1 @@ +copyright: "© 2026 [Tobias Gesellchen](https://github.com/gesellix)" diff --git a/docs/layouts/_partials/custom/footer.html b/docs/layouts/_partials/custom/footer.html new file mode 100644 index 0000000..a38c26e --- /dev/null +++ b/docs/layouts/_partials/custom/footer.html @@ -0,0 +1,14 @@ + diff --git a/docs/layouts/_partials/navbar-title.html b/docs/layouts/_partials/navbar-title.html new file mode 100644 index 0000000..0525e35 --- /dev/null +++ b/docs/layouts/_partials/navbar-title.html @@ -0,0 +1,19 @@ +{{- $logoPath := .Site.Params.navbar.logo.path | default "images/logo.svg" -}} +{{- $logoLink := .Site.Params.navbar.logo.link | default .Site.Home.RelPermalink -}} +{{- $logoWidth := .Site.Params.navbar.logo.width | default "20" -}} +{{- $logoHeight := .Site.Params.navbar.logo.height | default "20" -}} +{{- $logoDarkPath := .Site.Params.navbar.logo.dark | default $logoPath -}} + + + {{- $displayTitle := (.Site.Params.navbar.displayTitle | default true) }} + {{- if (.Site.Params.navbar.displayLogo | default true) }} + {{ cond $displayTitle `Logo` .Site.Title }} + {{ cond $displayTitle `Dark Logo` .Site.Title }} + {{- end }} + {{- if $displayTitle }} +
+ {{- .Site.Title -}} + Bose SoundTouch Toolkit +
+ {{- end }} +
diff --git a/docs/static/favicon.svg b/docs/static/favicon.svg new file mode 100644 index 0000000..483882f --- /dev/null +++ b/docs/static/favicon.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/docs/static/images/logo.svg b/docs/static/images/logo.svg new file mode 100644 index 0000000..483882f --- /dev/null +++ b/docs/static/images/logo.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + +