Add a working partial which gets the full author name from the site config file.

This commit is contained in:
2025-11-16 18:24:30 -07:00
parent a9377c0817
commit e67709bb0d

View File

@@ -0,0 +1,15 @@
{{ $author := .Page.Params.author
}}{{ if or (eq $author "authorBug") (eq $author "bug")
}}{{ .Scratch.Set "author" (.Param "authorBug")
}}{{ else if or (eq $author "authorHyperling") (eq $author "hyperling")
}}{{ .Scratch.Set "author" (.Param "authorHyperling")
}}{{ else if or (eq $author "authorHyperVegan") (eq $author "hypervegan")
}}{{ .Scratch.Set "author" (.Param "authorHyperVegan")
}}{{ else
}}{{ .Scratch.Set "author" $author
}}{{ end
}}{{ $author := .Scratch.Get "author"
}}{{ if $author
}}{{ print "by " $author
}}{{ end
}}