Closed WeyardWiz closed 2 years ago
ok so according to this post, I removed this line from C:\Hugo\Sites\webcomics-cms\themes\webcomic\layouts\partials\head.html
{{ printf
.Rel .MediaType.Type .MediaType.Suffix .Permalink $.Site.Title | safeHTML }}
and the serve then worked!
I actually undid that change, and then just removed .MediaType.Suffix
and even that worked.
But idk if that line is needed for something...i was able to launch the site just fine though without it...
It looks like in Hugo .82 they moved .MediaType.Suffix to .MediaType.Suffixes So if you change it to:
{{ printf .Rel .MediaType.Type .MediaType.Suffixes .Permalink $.Site.Title | safeHTML }}
it will work again.
This can be useful for doing different rendering based on content type. Per the Original documentation here.
Some additional context on what the properties do. Note that MediaTypes.Suffixes is at the bottom.
I think originally the thought was only serve the most common suffix for the file type. Then to allow granularity on the different extensions a file type can use prompted the change to providing the full list.
Apparently I turned off my email notifications for github, so only just seeing this. I'll look at this this evening and make sure everything works with latest version of hugo with directions.
Okay, I've updated this repo to use Hugo 0.91.2 instead of Hugo 0.57.2 (which is what Netlify was configured to use). I've updated the readme to show the supported version of Hugo as well.