make copyright more generic ; add support for multi-author in front matter to theme and update all pages to use the new authorship setup

This commit is contained in:
KemoNine 2023-03-20 13:23:57 -04:00
parent 8730f3afd1
commit 7af4b687c1
9 changed files with 25 additions and 9 deletions

View file

@ -44,7 +44,7 @@ uglyURLs = false
[params]
description = 'A collection of accessibility tips and tricks'
footer = '© KemoNine {Year}'
footer = '© {Year}'
[menu]
[[menu.main]]

View file

@ -1,7 +1,8 @@
---
layout: post
title: Site Launch
author: KemoNine
author:
- KemoNine
publishDate: 2023-03-18
lastMod: 2023-03-18
toc: false

View file

@ -1,7 +1,8 @@
---
layout: post
title: Contributor Guidelines
author: KemoNine
author:
- KemoNine
publishDate: 2023-03-20
lastMod: 2023-03-20
toc: false

View file

@ -1,7 +1,8 @@
---
layout: post
title: _Post Template_
author: YourName
author:
- Your Name
publishDate: 1900-12-31
lastMod: 1900-12-31
toc: false

View file

@ -1,6 +1,7 @@
---
title: _ Example _
author: KemoNine
author:
- KemoNine
publishDate: 2023-03-16
lastMod: 2023-03-18
toc: true

View file

@ -1,6 +1,7 @@
---
title: _ Tip Template _
author: YourName
author:
- Your Name
publishDate: 1900-12-30
lastMod: 1900-12-31
toc: true

View file

@ -1,6 +1,7 @@
---
title: _ Contributing _
author: KemoNine
author:
- KemoNine
publishDate: 2023-03-20
lastMod: 2023-03-20
toc: true

View file

@ -1,6 +1,7 @@
---
title: Organizers
author: KemoNine
author:
- KemoNine
publishDate: 2023-03-20
lastMod: 2023-03-20
toc: true

View file

@ -1,7 +1,16 @@
{{ partial "header.html" . }}
<div class="article-meta">
<h1><span class="title">{{ .Title | markdownify }}</span></h1>
{{ with .Params.author }}<h2 class="author">By: {{ . }}</h2>{{ end }}
{{ with .Params.author }}
<h3 class="author">By:
{{ if (reflect.IsSlice .) }}
{{ delimit . ", " }}
{{ else }}
{{ . }}
{{ end }}
</h3>
{{ end }}
{{ if (gt .Date 0) }}<h4 class="date">Published: {{ .Date.Format "2006/01/02" }}</h4>{{ end }}
{{ if (gt .Lastmod 0) }}<h4 class="date">Last Modified: {{ .Lastmod.Format "2006/01/02" }}</h4>{{ end }}
<p class="terms">