Move author config under paige.author

This commit is contained in:
Will Faught
2025-02-04 22:00:18 -08:00
parent bcacae10c0
commit 4bc542b6b1
5 changed files with 24 additions and 9 deletions

View File

@@ -14,7 +14,7 @@
{{ if $auto }}
{{ $audios := $page.Params.audio | default slice}}
{{ $authors := $page.GetTerms "authors" }}
{{ $authors := partial "paige/authors.html" $page }}
{{ $images := $page.Params.images | default slice }}
{{ $keywords := sort (union (union $page.Keywords $page.Params.tags) $page.Params.categories) }}
{{ $license := $page.Param "paige.license" | markdownify | plainify }}
@@ -51,9 +51,9 @@
{{ $authorObjects := slice }}
{{ range $authors }}
{{ $authoremail := cond (. | not | not) .Params.email "" }}
{{ $authorname := cond (. | not | not) .Params.name "" }}
{{ $authorurl := cond (. | not | not) .Params.url "" }}
{{ $authoremail := cond (. | not | not) .Params.paige.author.email "" }}
{{ $authorname := cond (. | not | not) .Params.paige.author.name "" }}
{{ $authorurl := cond (. | not | not) .Params.paige.author.url "" }}
{{ if or $authoremail $authorname $authorurl }}
{{ $authorSchema := newScratch }}