diff options
author | Joe Mooring <[email protected]> | 2023-10-16 17:43:11 -0700 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2023-10-17 20:04:24 +0200 |
commit | 4910312ee75a1c67fad68c259ad9576dca854c62 (patch) | |
tree | 8944afb966b5a2ca7b3be78eb232f685f249745f /docs | |
parent | 1b5f78b6b7335b02b6207a637498c4c8817999d1 (diff) | |
download | hugo-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.md | 8 |
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 |