Hi all,
I have strange behavior during development with hugo 0.88 on macosx.
Partial head.html is rendered under the body tag.
This is code on baseof.html:
<!DOCTYPE html>
<html lang="{{ .Site.LanguageCode | default "en-us" }}">
{{ partial "head" . }}
<body>{{/* */}}
{{ partial "navbar" . }}
{{ block "main" . }}{{ end }}
{{ partial "footer" . }}
{{ partial "script" . }}
</body>
</html>
This is my repository code:
https://github.com/antedoro/Arberia.git
I can’t understand this behavior
Vincenzo
Sorry now I edited my first post to explain correctly the problem.
The code contained in head.html is inserted inside the body tag.
And I can’t explain this.
I cannot reproduce the problem.
The code generated by Hugo is this:
As you can see the code of head.html partial is inseted inside body tag.
Which page are you viewing?
homepage but for other pages it’s the same
Stange. On my dev machine I have the same problem shows in posted screenshot with Firefox or Chrome.
Maybe you’re having a caching problem.
These are Chrome dev tools settings:
The problem is this line of code:
<link rel="preload" as="image" href="{{ "img/theme.png" | relURL }}" />
in head.html file
I don’t know why.