I’m getting the following behaviour which I can’t rectify.
The body of my baseof.html:
<body>
Top of baseof
<hr>
{{ block "main" . }}
{{end}}
<br>
{{ block "footer" . }}
This is the default baseof Footer
{{end}}
<hr>
Bottom of baseof
</body>
My single.html file:
{{ define "main" }}
This is the single template
{{end}}
{{ define "footer" }}
This is the Single footer
{{end}}
The link is working and I am pretty sure this is not related to hugo. It’s about the markup you are using. Can you share the github repository of your code?
I tried those solutions but they didn’t work unfortunately. But I just checked in FireFox and it’s working fine there (sorry I didn’t think to do this before). So I guess it’s to do with Chrome and maybe something in mine specifically. It’s not a big deal but hopefully it can get solved.
Whenever you get an unexpected result in the browser, one of the early things to try is ctrl-F5 to force the browser to invalidate the cache and reload everything from scratch.
If you are interested, you can see the difference using the network tab of the developer tools (F11).
Browsers generally try to aggressively cache CSS files to improve performance. Sometimes you have to give them a nudge in order to get the newer layout.
I’ve found that Chrome is so aggressive with caching. You really have to run it in incognito or with dev tools open (and cache disabled set when it’s open). Alternatively, I do my dev work in Chrome Canary with the cache turned off completely.