From e67709bb0ddadd9a4689c0b4ab17f82542a8023a Mon Sep 17 00:00:00 2001 From: Hyperling Date: Sun, 16 Nov 2025 18:24:30 -0700 Subject: [PATCH] Add a working partial which gets the full author name from the site config file. --- layouts/partials/author.html | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 layouts/partials/author.html diff --git a/layouts/partials/author.html b/layouts/partials/author.html new file mode 100644 index 0000000..5eb523c --- /dev/null +++ b/layouts/partials/author.html @@ -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 +}} \ No newline at end of file