diff options
author | Daniele Sluijters <daenney@users.noreply.github.com> | 2022-09-29 22:53:40 +0300 |
---|---|---|
committer | Daniele Sluijters <daenney@users.noreply.github.com> | 2022-09-29 23:02:03 +0300 |
commit | aa2d650e7f380ba8075922bc74a2597a850b1e78 (patch) | |
tree | a2d5576feafe3106feed657564c0a4095d1591e6 /README.md | |
parent | 9094304e08c4ea1a538813e2b7656bd916fb2863 (diff) |
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.
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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 |