From 35b904798843d98f41f5b5ac00dd859894e5bea6 Mon Sep 17 00:00:00 2001 From: Joe Constant Date: Mon, 7 Nov 2022 04:10:32 -0700 Subject: [PATCH] Add small documentation about .Site.Social.twitter variable (#1854) --- content/en/templates/internal.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/content/en/templates/internal.md b/content/en/templates/internal.md index 8bc832c27..79479bdfe 100644 --- a/content/en/templates/internal.md +++ b/content/en/templates/internal.md @@ -203,6 +203,18 @@ If no images are found at all, then an image-less Twitter `summary` card is used Hugo uses the page title and description for the card's title and description fields. The page summary is used if no description is given. +The `.Site.Social.twitter` variable is exposed from the config as the value for `twitter:site`. + +{{< code-toggle file="config" >}} +[social] + twitter = "GoHugoIO" +{{}} + +NOTE: The `@` will be added for you +``` + +``` + ### Use the Twitter Cards Template To add Twitter card metadata, include the following line immediately after the `` element in your templates: