hugo version
Hugo Static Site Generator v0.18.1 BuildDate: 2016-12-29T18:12:41+01:00
running hugo
as well as hugo serve
(with no folder public/
present) results in the following output:
Started building sites ...
ERROR: 2017/01/06 14:07:58 template.go:495: Failed to add template public/fonts/FontAwesome.otf in path /Users/georg/projects/Zahlz_Website/layouts/public/fonts/FontAwesome.otf: template: public/fonts/FontAwesome.otf:783: unexpected unrecognized character in action: U+FFFD '�' in command
ERROR: 2017/01/06 14:07:58 template.go:495: Failed to add template public/fonts/fontawesome-webfont.woff in path /Users/georg/projects/Zahlz_Website/layouts/public/fonts/fontawesome-webfont.woff: template: public/fonts/fontawesome-webfont.woff:46: unexpected unrecognized character in action: U+FFFD '�' in command
ERROR: 2017/01/06 14:07:58 template.go:495: Failed to add template public/fonts/fontawesome-webfont.woff2 in path /Users/georg/projects/Zahlz_Website/layouts/public/fonts/fontawesome-webfont.woff2: template: public/fonts/fontawesome-webfont.woff2:53: unexpected bad character U+FFFD '�' in command
ERROR: 2017/01/06 14:07:58 template.go:495: Failed to add template public/fonts/roboto/Roboto-Bold.ttf in path /Users/georg/projects/Zahlz_Website/layouts/public/fonts/roboto/Roboto-Bold.ttf: template: public/fonts/roboto/Roboto-Bold.ttf:45: unexpected unrecognized character in action: U+FFFD '�' in command
ERROR: 2017/01/06 14:07:58 template.go:495: Failed to add template public/fonts/roboto/Roboto-Bold.woff in path /Users/georg/projects/Zahlz_Website/layouts/public/fonts/roboto/Roboto-Bold.woff: template: public/fonts/roboto/Roboto-Bold.woff:118: unexpected unrecognized character in action: U+FFFD '�' in command
ERROR: 2017/01/06 14:07:58 template.go:495: Failed to add template public/fonts/roboto/Roboto-Bold.woff2 in path /Users/georg/projects/Zahlz_Website/layouts/public/fonts/roboto/Roboto-Bold.woff2: template: public/fonts/roboto/Roboto-Bold.woff2:98: unexpected unrecognized character in action: U+FFFD '�' in command
ERROR: 2017/01/06 14:07:58 template.go:495: Failed to add template public/fonts/roboto/Roboto-Light.ttf in path /Users/georg/projects/Zahlz_Website/layouts/public/fonts/roboto/Roboto-Light.ttf: template: public/fonts/roboto/Roboto-Light.ttf:43: unexpected unrecognized character in action: U+0003 in command
ERROR: 2017/01/06 14:07:58 template.go:495: Failed to add template public/fonts/roboto/Roboto-Light.woff in path /Users/georg/projects/Zahlz_Website/layouts/public/fonts/roboto/Roboto-Light.woff: template: public/fonts/roboto/Roboto-Light.woff:84: unexpected unrecognized character in action: U+FFFD '�' in command
ERROR: 2017/01/06 14:07:58 template.go:495: Failed to add template public/fonts/roboto/Roboto-Light.woff2 in path /Users/georg/projects/Zahlz_Website/layouts/public/fonts/roboto/Roboto-Light.woff2: template: public/fonts/roboto/Roboto-Light.woff2:82: unexpected unrecognized character in action: U+FFFD '�' in command
ERROR: 2017/01/06 14:07:58 template.go:495: Failed to add template public/fonts/roboto/Roboto-Medium.woff in path /Users/georg/projects/Zahlz_Website/layouts/public/fonts/roboto/Roboto-Medium.woff: template: public/fonts/roboto/Roboto-Medium.woff:46: unexpected bad character U+003E '>' in command
ERROR: 2017/01/06 14:07:58 template.go:495: Failed to add template public/fonts/roboto/Roboto-Medium.woff2 in path /Users/georg/projects/Zahlz_Website/layouts/public/fonts/roboto/Roboto-Medium.woff2: template: public/fonts/roboto/Roboto-Medium.woff2:22: unexpected bad character U+FFFD '�' in command
ERROR: 2017/01/06 14:07:58 template.go:495: Failed to add template public/fonts/roboto/Roboto-Regular.ttf in path /Users/georg/projects/Zahlz_Website/layouts/public/fonts/roboto/Roboto-Regular.ttf: template: public/fonts/roboto/Roboto-Regular.ttf:50: unexpected bad character U+005E '^' in command
ERROR: 2017/01/06 14:07:58 template.go:495: Failed to add template public/fonts/roboto/Roboto-Regular.woff in path /Users/georg/projects/Zahlz_Website/layouts/public/fonts/roboto/Roboto-Regular.woff: template: public/fonts/roboto/Roboto-Regular.woff:85: unexpected unrecognized character in action: U+FFFD '�' in command
ERROR: 2017/01/06 14:07:58 template.go:495: Failed to add template public/fonts/roboto/Roboto-Thin.woff in path /Users/georg/projects/Zahlz_Website/layouts/public/fonts/roboto/Roboto-Thin.woff: template: public/fonts/roboto/Roboto-Thin.woff:83: unexpected "|" in command
ERROR: 2017/01/06 14:07:58 template.go:495: Failed to add template public/images/Anwendungsfall_POS.png in path /Users/georg/projects/Zahlz_Website/layouts/public/images/Anwendungsfall_POS.png: template: public/images/Anwendungsfall_POS.png:82: unexpected unrecognized character in action: U+FFFD '�' in command
...
...
Built site for language de:
0 of 2 drafts rendered
0 future content
0 expired content
32 regular pages created
10 other pages created
0 non-page files copied
0 paginator pages created
4 tags created
0 created
0 main created
total in 2348 ms
Hugo seems to try to pass all the content from public/
through a template function.
These are static assets from static/
.
I suspect this issue to be related to 0.18.0
or 0.18.1
, as I did not change the structure of my project, only updated hugo via brew. Probably related to https://github.com/spf13/hugo/issues/2820.
While the issues are labeled as ERROR
, the site generation still works. Is this desired? Should it maybe be a WARNING
, or not compile at all?
It would be very kind if you could help to figure out the issue.