About Internal templates - OG, Twitter, Schema

I have added this code to head part:
{{ partial “opengraph.html” . }}

{{ partial "twittercards.html" . }}

{{ partial "schema.html" . }}

I had to copy these templates from Hugo’s repo into _partials directory, because I can not deploy a site without them, Hugo says file not found. Do I really need to keep these files in _partials directory?

Hugo version?

v0.151.2

That doesn’t make sense to me. I just tested this…

layouts/baseof.html

...
{{ partial "opengraph.html" . }}
{{ partial "twitter_cards.html" . }}  <-- note the underscore
{{ partial "schema.html" . }}
...

There’s no need to copy the templates.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.