mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-13 22:16:02 +00:00
tpl/tplimpl: Deprecate .Site.Social usage with internal templates
This commit is contained in:
1 parent
e3ec2a4f20
commit
78becc6eed
1 file changed
+4
-4
@@ -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.
|
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" >}}
|
{{< code-toggle file="hugo" copy=false >}}
|
||||||
[social]
|
[params.social]
|
||||||
twitter = "GoHugoIO"
|
twitter = "GoHugoIO"
|
||||||
{{</ code-toggle >}}
|
{{</ code-toggle >}}
|
||||||
|
|
||||||
NOTE: The `@` will be added for you
|
NOTE: The `@` will be added for you
|
||||||
|
|||||||
Reference in new issue
Block a user