From 7af4b687c1a06adc2167fa83f61f4838376df11f Mon Sep 17 00:00:00 2001 From: KemoNine Date: Mon, 20 Mar 2023 13:23:57 -0400 Subject: [PATCH] make copyright more generic ; add support for multi-author in front matter to theme and update all pages to use the new authorship setup --- config.toml | 2 +- content/posts/2023-03-18-launch.md | 3 ++- content/posts/2023-03-20-contributing.md | 3 ++- content/posts/_template.md | 3 ++- content/tips/_example.md | 3 ++- content/tips/_template.md | 3 ++- content/tips/faq/_contributing.md | 3 ++- content/tips/organizers/index.md | 3 ++- themes/hugo-xmin/layouts/_default/single.html | 11 ++++++++++- 9 files changed, 25 insertions(+), 9 deletions(-) diff --git a/config.toml b/config.toml index b260b1a..09bd9b3 100644 --- a/config.toml +++ b/config.toml @@ -44,7 +44,7 @@ uglyURLs = false [params] description = 'A collection of accessibility tips and tricks' - footer = '© KemoNine {Year}' + footer = '© {Year}' [menu] [[menu.main]] diff --git a/content/posts/2023-03-18-launch.md b/content/posts/2023-03-18-launch.md index ece2df1..a356c11 100644 --- a/content/posts/2023-03-18-launch.md +++ b/content/posts/2023-03-18-launch.md @@ -1,7 +1,8 @@ --- layout: post title: Site Launch -author: KemoNine +author: + - KemoNine publishDate: 2023-03-18 lastMod: 2023-03-18 toc: false diff --git a/content/posts/2023-03-20-contributing.md b/content/posts/2023-03-20-contributing.md index 034e3c5..9da68cf 100644 --- a/content/posts/2023-03-20-contributing.md +++ b/content/posts/2023-03-20-contributing.md @@ -1,7 +1,8 @@ --- layout: post title: Contributor Guidelines -author: KemoNine +author: + - KemoNine publishDate: 2023-03-20 lastMod: 2023-03-20 toc: false diff --git a/content/posts/_template.md b/content/posts/_template.md index bc8e9d7..5283eea 100644 --- a/content/posts/_template.md +++ b/content/posts/_template.md @@ -1,7 +1,8 @@ --- layout: post title: _Post Template_ -author: YourName +author: + - Your Name publishDate: 1900-12-31 lastMod: 1900-12-31 toc: false diff --git a/content/tips/_example.md b/content/tips/_example.md index 01b4589..dfc7fef 100644 --- a/content/tips/_example.md +++ b/content/tips/_example.md @@ -1,6 +1,7 @@ --- title: _ Example _ -author: KemoNine +author: + - KemoNine publishDate: 2023-03-16 lastMod: 2023-03-18 toc: true diff --git a/content/tips/_template.md b/content/tips/_template.md index b11753d..8618dc9 100644 --- a/content/tips/_template.md +++ b/content/tips/_template.md @@ -1,6 +1,7 @@ --- title: _ Tip Template _ -author: YourName +author: + - Your Name publishDate: 1900-12-30 lastMod: 1900-12-31 toc: true diff --git a/content/tips/faq/_contributing.md b/content/tips/faq/_contributing.md index 3aee302..b236e43 100644 --- a/content/tips/faq/_contributing.md +++ b/content/tips/faq/_contributing.md @@ -1,6 +1,7 @@ --- title: _ Contributing _ -author: KemoNine +author: + - KemoNine publishDate: 2023-03-20 lastMod: 2023-03-20 toc: true diff --git a/content/tips/organizers/index.md b/content/tips/organizers/index.md index cd8bfdb..485f3e4 100644 --- a/content/tips/organizers/index.md +++ b/content/tips/organizers/index.md @@ -1,6 +1,7 @@ --- title: Organizers -author: KemoNine +author: + - KemoNine publishDate: 2023-03-20 lastMod: 2023-03-20 toc: true diff --git a/themes/hugo-xmin/layouts/_default/single.html b/themes/hugo-xmin/layouts/_default/single.html index f922f20..508bb46 100644 --- a/themes/hugo-xmin/layouts/_default/single.html +++ b/themes/hugo-xmin/layouts/_default/single.html @@ -1,7 +1,16 @@ {{ partial "header.html" . }}

{{ .Title | markdownify }}

-{{ with .Params.author }}

By: {{ . }}

{{ end }} +{{ with .Params.author }} +

By: + {{ if (reflect.IsSlice .) }} + {{ delimit . ", " }} + {{ else }} + {{ . }} + {{ end }} +

+{{ end }} + {{ if (gt .Date 0) }}

Published: {{ .Date.Format "2006/01/02" }}

{{ end }} {{ if (gt .Lastmod 0) }}

Last Modified: {{ .Lastmod.Format "2006/01/02" }}

{{ end }}