hugo: Generator tag not being injected
I have a template like so:
<!DOCTYPE html>
<html>
{{ partial "head.html" . }}
<body>
*SNIP*
</body>
</html>
Inside head.html
I have the following tag:
<meta name="generator" content="{{ .Hugo.Generator }}" />
Hugo version:
Hugo Static Site Generator v0.14 BuildDate: 2015-06-16T23:41:12+03:00
I’m building using this command: hugo -D -d public_prod/
Output is always:
<meta name="generator" content=""/>
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 17 (7 by maintainers)
Speaking as a user and not a contributor (and a beginner at that), the code snippet from above made all the difference. The intent of what it was providing helped. The fact that it was going to generate the entirety of the meta tag versus just the content piece was lost on me. I expected it to work like .Hugo.Version. So a brief example of usage would have been helpful in my case.