Re:Show HN: Gutenberg – A static site engine as a single exe...
by Keats on Friday October 20, 2017 @02:57AM
(#15513980)
Yeah, that's the worst part of Hugo by far for me. The default template engine is just terrible.
Re:Show HN: Gutenberg – A static site engine as a single exe...
by thenomad on Friday October 20, 2017 @10:59AM
(#15516287)
Are there non-default ones? I also don't love Hugo's template engine.
Re:Show HN: Gutenberg – A static site engine as a single exe...
by Keats on Friday October 20, 2017 @12:24PM
(#15517016)
There are 2 others: https://gohugo.io/templates/alternatives/ but I don't like them either x)
Example:
{{ if and (or (isset .Params "title") (isset .Params "caption")) (isset .Params "attr")}}