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

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

General

About populating metadata (Open Graph)

Solved by Paul Massendari View solution

Started by P. Mergey 8 years ago · 2 replies · 1268 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 Jerry Hunt, 4 days ago
2 82 12 hours ago
General · by pamtbaau, 17 hours ago
1 55 16 hours ago
General · by Andy Miller, 1 day ago
0 45 1 day ago
General · by Marcel, 12 months ago
6 348 5 days ago
General · by Duc , 5 days ago
3 43 5 days ago