Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

About populating metadata (Open Graph)

Solved by Paul Massendari View solution

Started by P. Mergey 9 years ago · 2 replies · 1602 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 jeremycherfas, 1 week ago
4 181 2 days ago
General · by lynbor, 6 days ago
2 122 3 days ago
General · by Old Man Umby, 1 week ago
1 100 1 week ago
General · by Sebastian, 1 week ago
1 124 1 week ago
General · by Andy Miller, 3 weeks ago
0 248 3 weeks ago