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

Opengraph Metadata / flat arrays

Started by Muut Archive 10 years ago · 3 replies · 389 views
10 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 Deleted User, 9 years ago
0 1357 9 years ago
Archive · by Muut Archive, 9 years ago
2 936 9 years ago
Archive · by Muut Archive, 9 years ago
2 4066 9 years ago
Archive · by Muut Archive, 9 years ago
1 2954 9 years ago
Archive · by Muut Archive, 9 years ago
3 1120 9 years ago