Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

head-open adds meta tag in body #85

Open
PaulRBerg opened this issue Dec 24, 2018 · 0 comments
Open

head-open adds meta tag in body #85

PaulRBerg opened this issue Dec 24, 2018 · 0 comments

Comments

@PaulRBerg
Copy link

PaulRBerg commented Dec 24, 2018

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?

@PaulRBerg PaulRBerg changed the title head-open adds headers in body head-open adds meta tag in body Dec 24, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant