Do the author partial like how the author shortcode needed done.
This commit is contained in:
@@ -1,10 +1,10 @@
|
|||||||
{{ $author := .Page.Params.author
|
{{ $author := .Page.Params.author
|
||||||
}}{{ if or (eq $author "authorBug") (eq $author "bug")
|
}}{{ if or (eq $author "authorBug") (eq $author "bug")
|
||||||
}}{{ .Scratch.Set "author" (.Param "authorBug")
|
}}{{ .Scratch.Set "author" .Site.Params.authorBug
|
||||||
}}{{ else if or (eq $author "authorHyperling") (eq $author "hyperling")
|
}}{{ else if or (eq $author "authorHyperling") (eq $author "hyperling")
|
||||||
}}{{ .Scratch.Set "author" (.Param "authorHyperling")
|
}}{{ .Scratch.Set "author" .Site.Params.authorHyperling
|
||||||
}}{{ else if or (eq $author "authorHyperVegan") (eq $author "hypervegan")
|
}}{{ else if or (eq $author "authorHyperVegan") (eq $author "hypervegan")
|
||||||
}}{{ .Scratch.Set "author" (.Param "authorHyperVegan")
|
}}{{ .Scratch.Set "author" .Site.Params.authorHyperVegan
|
||||||
}}{{ else
|
}}{{ else
|
||||||
}}{{ .Scratch.Set "author" $author
|
}}{{ .Scratch.Set "author" $author
|
||||||
}}{{ end
|
}}{{ end
|
||||||
|
|||||||
Reference in New Issue
Block a user