I have overriden head-open.html in layouts/partials like this:
<meta name="description" content="{{ .Description }}"/>
<meta property="og:title" content="{{ .Title }}"/>
<meta property="og:description" content="{{ .Description }}"/>
{{ with .Params.Images }}
{{ range first 1 . }}
<meta property="og:image" content="{{ . | absURL }}" />
{{ end }}
{{ end }}
The first three tags go correctly into the head, but the last one goes into body. Not sure if this is caused by the fact that hugo has to run through the images array, hence delaying the execution and putting in the tag in the body. Nevertheless, this could also be a bug, couldn't it?
I have overriden
head-open.html
inlayouts/partials
like this:The first three tags go correctly into the
head
, but the last one goes intobody
. Not sure if this is caused by the fact that hugo has to run through the images array, hence delaying the execution and putting in the tag in thebody
. Nevertheless, this could also be a bug, couldn't it?