Get the author shortcode working properly as well.

This commit is contained in:
2025-11-16 18:28:07 -07:00
parent 500eee955d
commit 53deccc716

View File

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