Skip to content

Commit

Permalink
tpl/tplimpl: Deprecate .Site.Social usage with internal templates
Browse files Browse the repository at this point in the history
  • Loading branch information
jmooring authored and bep committed Oct 17, 2023
1 parent e3ec2a4 commit 78becc6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions content/en/templates/internal.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 78becc6

Please sign in to comment.