From aa2d650e7f380ba8075922bc74a2597a850b1e78 Mon Sep 17 00:00:00 2001 From: Daniele Sluijters Date: Thu, 29 Sep 2022 21:53:40 +0200 Subject: Add support for Twitter Card and Opengraph This includes two booleans to enable the generation of Twitter Card and Opengraph meta tags. The templates used are built into Hugo. --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index b47088b..b2b8c6c 100644 --- a/README.md +++ b/README.md @@ -52,6 +52,18 @@ footnoteReturnLinkContents = "^" darkmode = true # set true if you prefer dark mode ``` +### Social media + +If you want to enable the generation of Twitter Card or Opengraph `meta` tags so you get nice embeds on Twitter, Facebook and other social media sites, add the following: + +```toml +[Params] + twittercard = true + opengraph = true +``` + +See the [Internal Templates](https://gohugo.io/templates/internal/) in Hugo for how to configure this behaviour further. + ## Shortcodes ### Sidenotes -- cgit v1.2.3