Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

Opengraph Metadata / flat arrays

Started by Muut Archive 11 years ago · 3 replies · 494 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 Deleted User, 9 years ago
0 2609 9 years ago
Archive · by Muut Archive, 9 years ago
2 1716 9 years ago
Archive · by Muut Archive, 9 years ago
2 5011 9 years ago
Archive · by Muut Archive, 9 years ago
1 3840 9 years ago
Archive · by Muut Archive, 9 years ago
3 1820 9 years ago