Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Internal templates are not available #70

Closed
sophiabrandt opened this issue Aug 7, 2021 · 4 comments
Closed

Internal templates are not available #70

sophiabrandt opened this issue Aug 7, 2021 · 4 comments

Comments

@sophiabrandt
Copy link

I was thinking about implementing Twitter Card metatags and og:image (OpenGraph) metatags for better sharability on social media.

In layouts/partials/head.html there are references to several internal templates:

{{ template "_internal/opengraph.html" . -}}
{{ template "_internal/twitter_cards.html" . }}
{{ template "_internal/schema.html" . }}

This implies that the metatags should be implemented in those templates.

However, I cannot find them in the theme. Are they not available to the public?

In any case, thank you for the work on the theme.

@dataCobra
Copy link
Owner

dataCobra commented Aug 7, 2021

Hello @sophiabrandt,

the templates that you mentioned are available trough Hugo and they will be generated when creating the website with hugo command. The only thing I need to do as a theme creator is to load them in via{{ template "..." . }}.

If you want to know more about how to use these templates take a look at the Hugo documentation.

I hope this will help. 👍

If you've more questing regarding this topic, feel free to ask.

Regards,
Ben

@dataCobra
Copy link
Owner

Just one more info regarding the images = ['...'] front matter for the content.

If you want to use images make sure the first one in the list is the one that should also be displayed on the post page.

@sophiabrandt
Copy link
Author

Huh. 😆 Thanks for clearing that up.
It did not occur to me to check the Hugo documentation, sorry. 😅

@dataCobra
Copy link
Owner

No worries. 👍 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants