From 703b9981e909f2aced2b75839af99602c4b1432a Mon Sep 17 00:00:00 2001 From: geekifan Date: Sun, 27 Apr 2025 10:45:25 +0800 Subject: [PATCH] add tagline --- hugo.toml | 1 + layouts/partials/sidebar.html | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/hugo.toml b/hugo.toml index 71c4955..0347031 100644 --- a/hugo.toml +++ b/hugo.toml @@ -70,6 +70,7 @@ path = "github.com/gohugoio/hugo-mod-bootstrap-scss/v5" theme_version = "5.2.0" toc = true avatar = "img/commons/avatar.jpg" + tagline = "A text-focused Jekyll theme" [params.assets] self_host = false diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html index 6f1b451..f341783 100644 --- a/layouts/partials/sidebar.html +++ b/layouts/partials/sidebar.html @@ -13,7 +13,9 @@ {{ .Site.Title }} -

{{ .Site.Params.tagline }}

+ {{ if .Site.Params.tagline }} +

{{ .Site.Params.tagline }}

+ {{ end }}