Files
hugo-recipes/layouts/partials/author.html

15 lines
558 B
HTML

{{ $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
}}