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 →

Opengraph Metadata / flat arrays

Started by Muut Archive 11 years ago · 3 replies · 536 views
11 years ago

I tried to adjust my opengraph metadata as described in the changelog of the 1.0.9 release.

[BC] Metadata now supports only flat arrays. To use open graph metas and the likes (ie, 'og:title'), simply specify it in the key.

These flat arrays do work for me in the site.yaml and site-wide.
If I use the same notation in the markdown headers, the site.yaml metadata is not overridden.
I tried a few variations, also mixing flat and non-flat arrays across both files but nothing seems to work.

It looks like the section in the docs (Opengraph-Metatag-Examples) has already been updated. So I tried that example too...without any luck.

TXT
metadata:
    'og:title': The Rock
    'og:type': video.movie
    'og:url': http://www.imdb.com/title/tt0117500/
    'og:image': http://ia.media-imdb.com/images/rock.jpg

Do I miss something?

Suggested topics

Topic Participants Replies Views Activity
Archive · by Muut Archive, 10 years ago
1 674 1 week ago
Archive · by Deleted User, 9 years ago
0 3043 9 years ago
Archive · by Muut Archive, 9 years ago
2 1983 9 years ago
Archive · by Muut Archive, 9 years ago
2 5337 9 years ago
Archive · by Muut Archive, 9 years ago
1 4134 9 years ago