Skip to content

Commit 705e3cd

Browse files
committed
Merge commit '3710a5ec7efe6baca6e452f43632c05d22bab3c4'
2 parents 8c61fd2 + 3710a5e commit 705e3cd

File tree

6 files changed

+15
-2
lines changed

6 files changed

+15
-2
lines changed

docs/config/_default/params.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,6 @@ images = ["images/gohugoio-card.png"]
1919
flex_box_interior_classes = "flex-auto w-100 w-40-l mr3 mb3 bg-white ba b--moon-gray nested-copy-line-height"
2020

2121
#sidebar_direction = "sidebar_left"
22+
23+
[social]
24+
twitter = "GoHugoIO"

docs/content/en/getting-started/glossary.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,10 @@ Used within a [template action](#template-action), a function takes one or more
9292

9393
Metadata at the beginning of each content page, separated from the content by format-specific delimiters. See [details](/content-management/front-matter/).
9494

95+
### identifier
96+
97+
A string that represents a variable, method, object, or field. It must conform to Go's [language specification](https://go.dev/ref/spec#Identifiers), beginning with a letter or underscore, followed by zero or more letters, digits, or underscores.
98+
9599
### int
96100

97101
See [integer](#integer).

docs/content/en/templates/internal.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ To add Open Graph metadata, include the following line between the `<head>` tags
165165

166166
## Twitter Cards
167167

168-
An internal template for [Twitter Cards](https://developer.twitter.com/en/docs/tweets/optimize-with-cards/overview/abouts-cards),
168+
An internal template for [Twitter Cards](https://developer.twitter.com/en/docs/twitter-for-websites/cards/overview/abouts-cards),
169169
metadata used to attach rich media to Tweets linking to your site.
170170

171171
### Configure Twitter Cards

docs/content/en/templates/introduction.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,8 @@ all other pages:
114114
Var is {{ $var }}
115115
```
116116

117+
Variable names must conform to Go's naming rules for [identifiers][identifier].
118+
117119
## Functions
118120

119121
Go Templates only ship with a few basic functions but also provide a mechanism for applications to extend the original set.
@@ -660,6 +662,7 @@ If you restrict front matter to the TOML format, and omit quotation marks surrou
660662
[dotdoc]: https://golang.org/pkg/text/template/#hdr-Variables
661663
[front matter]: /content-management/front-matter
662664
[functions]: /functions
665+
[identifier]: /getting-started/glossary/#identifier
663666
[internal templates]: /templates/internal
664667
[math]: /functions/math
665668
[pagevars]: /variables/page

docs/content/en/templates/lists/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -592,6 +592,6 @@ See the documentation on [`where`] and
592592
[taxvars]: /variables/taxonomy/
593593
[views]: /templates/views/
594594
[`where`]: /functions/collections/where
595-
[`first]: /functions/first/
595+
[`first`]: /functions/first/
596596
[main sections]: /functions/collections/where#mainsections
597597
[`time.Format`]: /functions/time/format

docs/hugo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ ID = 'G-MBZGKNMDWC'
8686
weight = 60
8787
cardinalityThreshold = 50
8888

89+
# TODO delete when (a) Netlify is building the site with v0.120.0 or later,
90+
# and (b) the changes fom gohugoioTheme/commit/af97b8e61638ddf043b87590cd567d76045bf9be
91+
# have been pulled into this repo.
8992
[social]
9093
twitter = "GoHugoIO"
9194

0 commit comments

Comments
 (0)