]> git.maquefel.me Git - brevno-suite/hugo/commitdiff
Squashed 'docs/' changes from cb18a5183..417593493
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Fri, 27 Oct 2023 08:06:44 +0000 (10:06 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Fri, 27 Oct 2023 08:06:44 +0000 (10:06 +0200)
417593493 Fix broken link
9829e2862 Mention Go variable naming rules
11ce3a59c Fix typo
0d62feed5 Update glossary
5e9ecb217 Prepare for pending deprecations
c5f76c776 Update Twitter Cards URL

git-subtree-dir: docs
git-subtree-split: 4175934933feca8fa1f9936ccf7d16b90b41e833

config/_default/params.toml
content/en/getting-started/glossary.md
content/en/templates/internal.md
content/en/templates/introduction.md
content/en/templates/lists/index.md
hugo.toml

index 7103394a63ac19687e23476cc8bc7bc455deda12..3fddf9dbc6ee02173625d43477f68ca9414d3470 100644 (file)
@@ -19,3 +19,6 @@ images = ["images/gohugoio-card.png"]
 flex_box_interior_classes = "flex-auto w-100 w-40-l mr3 mb3 bg-white ba b--moon-gray nested-copy-line-height"
 
 #sidebar_direction = "sidebar_left"
+
+[social]
+twitter = "GoHugoIO"
index c15af5170de8be7aedb58250289ac0efe4808bec..759cb1cd132d22c6d494a407f08fb0da47c9c355 100644 (file)
@@ -92,6 +92,10 @@ Used within a [template action](#template-action), a function takes one or more
 
 Metadata at the beginning of each content page, separated from the content by format-specific delimiters. See&nbsp;[details](/content-management/front-matter/).
 
+### identifier
+
+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.
+
 ### int
 
 See [integer](#integer).
index ee0d7258db0a2ede049e3dd9bc765cccb8edf8b6..cdac50478b281d35b86d8afc3144ae2f01500e10 100644 (file)
@@ -159,7 +159,7 @@ To add Open Graph metadata, include the following line between the `<head>` tags
 
 ## Twitter Cards
 
-An internal template for [Twitter Cards](https://developer.twitter.com/en/docs/tweets/optimize-with-cards/overview/abouts-cards),
+An internal template for [Twitter Cards](https://developer.twitter.com/en/docs/twitter-for-websites/cards/overview/abouts-cards),
 metadata used to attach rich media to Tweets linking to your site.
 
 ### Configure Twitter Cards
index 93666de2872929414a507b3038fd4cf5bdba112d..2eb436f82270fbe74a046f225c179597bf570348 100644 (file)
@@ -114,6 +114,8 @@ all other pages:
 Var is {{ $var }}
 ```
 
+Variable names must conform to Go's naming rules for [identifiers][identifier].
+
 ## Functions
 
 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
 [dotdoc]: https://golang.org/pkg/text/template/#hdr-Variables
 [front matter]: /content-management/front-matter
 [functions]: /functions
+[identifier]: /getting-started/glossary/#identifier
 [internal templates]: /templates/internal
 [math]: /functions/math
 [pagevars]: /variables/page
index e586460db716138352f089020416683d72343c20..b48969e96bef5bdc3ddd92e5461f054bc7107b94 100644 (file)
@@ -592,6 +592,6 @@ See the documentation on [`where`] and
 [taxvars]: /variables/taxonomy/
 [views]: /templates/views/
 [`where`]: /functions/collections/where
-[`first]: /functions/first/
+[`first`]: /functions/first/
 [main sections]: /functions/collections/where#mainsections
 [`time.Format`]: /functions/time/format
index 46486aec921e4479484eeb2f4b65c033a9b8ca53..3126027a94171a1ae0a88779bf040c2d2c17f6fe 100644 (file)
--- a/hugo.toml
+++ b/hugo.toml
@@ -86,6 +86,9 @@ ID = 'G-MBZGKNMDWC'
     weight               = 60
     cardinalityThreshold = 50
 
+# TODO delete when (a) Netlify is building the site with v0.120.0 or later,
+# and (b) the changes fom gohugoioTheme/commit/af97b8e61638ddf043b87590cd567d76045bf9be
+# have been pulled into this repo.
 [social]
   twitter = "GoHugoIO"