From e57e3dd83d6c71c63e0dbd5d7122338e0900b12f Mon Sep 17 00:00:00 2001 From: Junyi Hou Date: Fri, 26 Apr 2024 12:29:07 +0800 Subject: [PATCH] update "author" parameter --- exampleSiteMultilingual/hugo.toml | 3 ++- layouts/partials/footer.html | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/exampleSiteMultilingual/hugo.toml b/exampleSiteMultilingual/hugo.toml index 5ca0302..14e1713 100644 --- a/exampleSiteMultilingual/hugo.toml +++ b/exampleSiteMultilingual/hugo.toml @@ -9,9 +9,10 @@ disqusShortname = "" [author] name = "Junyi" +email = "me@junyi.dev" +location = "Singapore" [params] -author = "Junyi" description = "Anubis2 is another simple minimalist theme for Hugo blog engine." dateFormat = "2006-01-02" paginationSinglePost = true diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index b580485..fbff101 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -15,7 +15,7 @@ {{ end }}
- © {{ if isset .Site.Params "author"}}{{ .Site.Params.author }}, {{end}}{{ now.Year }} + © {{ if isset .Site.Author "name"}}{{ .Site.Author.name }}, {{end}}{{ now.Year }} {{ if .Site.Params.UmamiAnalytics.shareUrl }} {{ end }}