Skip to content
Grav 2.0 is officially stable. Read the announcement →
General

About populating metadata (Open Graph)

Solved by Paul Massendari View solution

Started by P. Mergey 8 years ago · 2 replies · 1560 views
8 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?

8 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 jean-louis67, 3 weeks ago
2 308 3 weeks ago
General · by Andy Miller, 3 weeks ago
0 310 3 weeks ago
General · by Veehem, 4 weeks ago
0 263 4 weeks ago
General · by milkboy, 4 weeks ago
0 264 4 weeks ago
General · by ian russell, 1 month ago
2 335 1 month ago