Get the author shortcode working properly as well.
This commit is contained in:
@@ -1,7 +1,15 @@
|
|||||||
{{ if eq (.Get 0) "bug" }}
|
{{ $author := .Get 0
|
||||||
{{ print "Bug" }}
|
}}{{ if or (eq $author "authorBug") (eq $author "bug")
|
||||||
{{ else if eq (.Get 0) "hyperling" }}
|
}}{{ .Scratch.Set "author" .Site.Params.authorBug
|
||||||
{{ print "Hyperling" }}
|
}}{{ else if or (eq $author "authorHyperling") (eq $author "hyperling")
|
||||||
{{ else if eq (.Get 0) "hypervegan" }}
|
}}{{ .Scratch.Set "author" .Site.Params.authorHyperling
|
||||||
{{ print "HyperVegan" }}'
|
}}{{ else if or (eq $author "authorHyperVegan") (eq $author "hypervegan")
|
||||||
{{ end }}
|
}}{{ .Scratch.Set "author" .Site.Params.authorHyperVegan
|
||||||
|
}}{{ else
|
||||||
|
}}{{ .Scratch.Set "author" $author
|
||||||
|
}}{{ end
|
||||||
|
}}{{ $author := .Scratch.Get "author"
|
||||||
|
}}{{ if $author
|
||||||
|
}}{{ print "by " $author
|
||||||
|
}}{{ end
|
||||||
|
}}
|
||||||
Reference in New Issue
Block a user