Apologies if I was not clear enough. I am not getting an error when Hugo creates the sites but getting discrepancies between how the page gets compiled locally when I run hugo server -D compared to when I deploy to a remote server. I have the website in two locations, one on Netlify (blog.mcdowell.si) and one on Cloudlflare (blog2.mcdowell.si).
I really don’t know how to be more specific than that.
The documentation about updating themes seems really sparse and if everything fails then will have to re-create the whole page all over again.
The issue seems to affect all pages I generate. The html output produced via local build compared to Netlify is completely different. I am suspecting this might not be a Hugo issue after all.
For example this page
The HTML is fine. And fotr example the embedded Youtube video is rendered correctly.
However once it gets deployed on Netlify or Cloudflare the html gets changed. Its not aligned and for rxample the Youtube link looses the “https:”
Please post your netlify.toml. If you have none then there is your issue. Netlify’s default Hugo is some old version. You need to at least at a current version. Then probably some other settings.
On that docu-page there is also a link to their Hugo specific explanations (in the left side navigation).
You are right. Found out via the Netlify support that Netlify builds default to Hugo v0.54.0 that dates back to 1 Feb 2019.
Forcing the version sorted out the issue including the Archive and the deformed Youtube link.
To answer a previous reply, netlify.toml is not a requirement but you can add settings in it as per this documentation page Build environment variables | Netlify Docs
The hugo version variable and other variables can also be added through the Netlify web UI.
As per having the same hugo version on all hardware this is slightly tricky as I run Ubuntu 20.04.2 LTS on one and Arch Linux on the other. The package on arch is stuck in 0.82 despite it saying it should be 0.84.
PS And when i meant a “wider html rendering issue” I meant on my page.