Files
site/themes/minimo/exampleSite/content/docs/opengraph.md
2021-09-06 13:02:12 -04:00

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
muniftanjim
features
og
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 of Strings]: path/url of audio files
  • images [Array of Strings]: path/url of image files
  • videos [Array of Strings]: 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 of Strings]: Facebook Profile IDs
  • appID [String]: Facebook Application ID
  • pageid [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.