From 88adfbdf89e8aea37a897df8ae8216e7b2e67bc4 Mon Sep 17 00:00:00 2001 From: BBaoVanC Date: Fri, 3 Nov 2023 23:33:28 -0500 Subject: [PATCH] Move site author to under params due to .Site.Author deprecation See Hugo v0.120.0 --- archetypes/blog/index.md | 2 +- archetypes/default/index.md | 2 +- exampleSite/hugo.yaml | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/archetypes/blog/index.md b/archetypes/blog/index.md index 4b95267..b449733 100644 --- a/archetypes/blog/index.md +++ b/archetypes/blog/index.md @@ -8,7 +8,7 @@ comments: true draft: true authors: - - {{ with .Site.Author.name }}{{ . }}{{ else }}John Doe{{ end }} + - {{ with .Site.Params.author.name }}{{ . }}{{ else }}John Doe{{ end }} categories: - archetype-stuff diff --git a/archetypes/default/index.md b/archetypes/default/index.md index 62154c0..074a962 100644 --- a/archetypes/default/index.md +++ b/archetypes/default/index.md @@ -6,7 +6,7 @@ toc: true comments: false authors: - - {{ with .Site.Author.name }}{{ . }}{{ else }}John Doe{{ end }} + - {{ with .Site.params.author.name }}{{ . }}{{ else }}John Doe{{ end }} --- diff --git a/exampleSite/hugo.yaml b/exampleSite/hugo.yaml index 61047a9..a4e6d8f 100644 --- a/exampleSite/hugo.yaml +++ b/exampleSite/hugo.yaml @@ -10,13 +10,13 @@ enableGitInfo: true taxonomies: _merge: deep -author: - name: bbaovanc - markup: # this just keeps the bobatheme markup styling _merge: deep params: + author: + name: bbaovanc + # these are for the OpenGraph/Twitter embeds in Hugo description: Example website for bobatheme