1.9 KiB
date, lastmod, title, authors, categories, tags, slug
date | lastmod | title | authors | categories | tags | slug | |||
---|---|---|---|---|---|---|---|---|---|
2017-09-26T08:00:00+06:00 | 2017-10-11T18:00:00+06:00 | Opengraph Support |
|
|
|
opengraph |
Minimo has built-in support for Opengraph tags. It will pick up most of the things from your contents' front-matters & Hugo configuration.
You can use these options in you content's front-matter:
---
audios: [] # for og:audio tags
images: [] # for og:image tags
videos: [] # for og:video tags
---
audios
[Array
ofString
s]: path/url of audio filesimages
[Array
ofString
s]: path/url of image filesvideos
[Array
ofString
s]: path/url of video files
N.B.: the front-matter syntax shown here is yaml
. If you use a different format (e.g. toml
), the syntax will change accordingly.
If you add [Cover Image]({{< relref "cover-image.md" >}}) to you content, it will also be picked up.
Facebook Opengraph
You can set these options in your config.toml
files for better integration with Facebook:
[params.opengraph.facebook]
admins = [] # for fb:admins tags
appID = "" # for fb:app_id tag
pageID = "" # for article:publisher tag
admins
[Array
ofString
s]: Facebook Profile IDsappID
[String
]: Facebook Application IDpageid
[String
]: Facebook Page ID
Also, the [social.facebook]
field from the Author's Profile data is used for article:author
tag.
Twitter Cards
Minimo has built-in support for Twitter Cards.
You can set these options in your config.toml
files to provide additional information for Twitter Cards:
[params.opengraph.twitter]
page = "" # for twitter:site tag
page
[String
]: Twitter Page's Username
Also, the [social.twitter]
field from the Author's Profile data is used for twitter:creator
tag.