From 78becc6eed5064567bef2402a8dc0efbec815d94 Mon Sep 17 00:00:00 2001 From: Joe Mooring Date: Mon, 16 Oct 2023 17:43:11 -0700 Subject: [PATCH] tpl/tplimpl: Deprecate .Site.Social usage with internal templates --- content/en/templates/internal.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/content/en/templates/internal.md b/content/en/templates/internal.md index ee0d7258db..56315ec2c9 100644 --- a/content/en/templates/internal.md +++ b/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" {{}} NOTE: The `@` will be added for you