calintat / minimal

Personal blog theme powered by Hugo
https://themes.gohugo.io/minimal/
MIT License
404 stars 221 forks source link

head-open adds meta tag in body #85

Open PaulRBerg opened 5 years ago

PaulRBerg commented 5 years ago

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?