Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

About populating metadata (Open Graph)

Solved by Paul Massendari View solution

Started by P. Mergey 9 years ago · 2 replies · 1766 views
9 years ago

A little question: could it be possible to consider a way to simplify populating metadata (mainly for Open Graph protocol) without having to settle redundant entries in the frontmatter of the md file?

For example :

  • og:title could simply use the title variable
  • og:url could use something like {{ base_url}} + slug variable
  • og:image could use something like {{ base_url}} + image or cover variable

Or did I miss something on OpenGraph Metatag examples page?

9 years ago

At the first look (and after a quick testing), your extension seems to effectively answer to the question I asked. I have to dig a little more to configure all properly now. Thanks for your answer.

Suggested topics

Topic Participants Replies Views Activity
General · by Hanns Mattes, 2 days ago
0 51 2 days ago
General · by Karmalakas, 4 days ago
2 117 4 days ago
General · by Hanns Mattes, 2 weeks ago
0 194 2 weeks ago
General · by Dima, 3 weeks ago
1 181 3 weeks ago
General · by pamtbaau, 4 weeks ago
0 291 4 weeks ago