aboutsummaryrefslogtreecommitdiffhomepage
path: root/docs
diff options
context:
space:
mode:
authorJoe Mooring <[email protected]>2023-10-16 17:43:11 -0700
committerBjørn Erik Pedersen <[email protected]>2023-10-17 20:04:24 +0200
commit4910312ee75a1c67fad68c259ad9576dca854c62 (patch)
tree8944afb966b5a2ca7b3be78eb232f685f249745f /docs
parent1b5f78b6b7335b02b6207a637498c4c8817999d1 (diff)
downloadhugo-4910312ee75a1c67fad68c259ad9576dca854c62.tar.gz
hugo-4910312ee75a1c67fad68c259ad9576dca854c62.zip
tpl/tplimpl: Deprecate .Site.Social usage with internal templates
Diffstat (limited to 'docs')
-rw-r--r--docs/content/en/templates/internal.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/content/en/templates/internal.md b/docs/content/en/templates/internal.md
index ee0d7258d..56315ec2c 100644
--- a/docs/content/en/templates/internal.md
+++ b/docs/content/en/templates/internal.md
@@ -184,11 +184,11 @@ 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 configuration as the value for `twitter:site`.
+Set the value of `twitter:site` in your site configuration:
-{{< code-toggle file="hugo" >}}
-[social]
- twitter = "GoHugoIO"
+{{< code-toggle file="hugo" copy=false >}}
+[params.social]
+twitter = "GoHugoIO"
{{</ code-toggle >}}
NOTE: The `@` will be added for you