Blogging Metadata
When you use Grav as your blogging platform you will want to include metadata that helps to populate descriptions and images when people share your post on Social Media such as Facebook, Twitter, etc.
You would add this information into the Header section of your Grav page.
Within the documentation there is reference to the meta data that you need to add within the header section, under Meta Page Headers. However, if you have transitioned from a platform such as WordPress where you use a plugin for this you might not realise the importance of the Metadata.
At the start of each of your blog posts you will want to have the following:
1---
2title: Blog Post Title
3publish_date: Date the blog post will go live
4date: Date the blog post was written
5metadata:
6 'og:title': Blog Post Title
7 'og:type': article
8 'og:description': Description of what your blog post is covering. This will be visible when people share your post on social media.
9 'og:url': The URL of the blog post
10 'og:site_name': The name of the overall site the blog post belongs to.
11 'og:locale': The language your blog post is written in
12 'og:image': The image you reference here will be visible when shared on social media.
13 'twitter:card' : The type of Twitter card that should be used.
14 'twitter:site' : Your Twitter handle
15 'twitter:title' : Blog Post Title
16 'twitter:description' : Description of what your blog post is covering. This will be visible when people share your post on social media.
17 'twitter:image' : The image you reference here will be visible when shared on social media.
18 'twitter:creator': The twitter handle of the blog post author.
19taxonomy:
20 category: [Blog post category]
21 tag: [Tag 1, Tag 2, Tag 3, Tag 4]
22 author: Author's name
23---
Read more about Twitter Cards
Read more about The Open Graph Protocol