From c5f76c7768d7e94504474df49982805aef474bb0 Mon Sep 17 00:00:00 2001 From: Christian Oliff Date: Mon, 23 Oct 2023 22:14:07 +0900 Subject: [PATCH 1/6] Update Twitter Cards URL --- content/en/templates/internal.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/en/templates/internal.md b/content/en/templates/internal.md index ee0d7258d..cdac50478 100644 --- a/content/en/templates/internal.md +++ b/content/en/templates/internal.md @@ -159,7 +159,7 @@ To add Open Graph metadata, include the following line between the `` 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 From 5e9ecb217949467243e38f8806f94a96a9daac3c Mon Sep 17 00:00:00 2001 From: Joe Mooring Date: Mon, 23 Oct 2023 06:48:57 -0700 Subject: [PATCH 2/6] Prepare for pending deprecations --- config/_default/params.toml | 3 +++ hugo.toml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/config/_default/params.toml b/config/_default/params.toml index 7103394a6..3fddf9dbc 100644 --- a/config/_default/params.toml +++ b/config/_default/params.toml @@ -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" diff --git a/hugo.toml b/hugo.toml index 46486aec9..3126027a9 100644 --- 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" From 0d62feed52c8e095f4d1b270968052b5d02a5f01 Mon Sep 17 00:00:00 2001 From: Joe Mooring Date: Tue, 24 Oct 2023 18:03:34 -0700 Subject: [PATCH 3/6] Update glossary --- content/en/getting-started/glossary.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/content/en/getting-started/glossary.md b/content/en/getting-started/glossary.md index c15af5170..997aa65a0 100644 --- a/content/en/getting-started/glossary.md +++ b/content/en/getting-started/glossary.md @@ -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 [details](/content-management/front-matter/). +### identifier + +An 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). From 11ce3a59c21d25bcea714fff37b4d90bc171ec60 Mon Sep 17 00:00:00 2001 From: Salim B Date: Wed, 25 Oct 2023 19:51:24 +0200 Subject: [PATCH 4/6] Fix typo --- content/en/getting-started/glossary.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/en/getting-started/glossary.md b/content/en/getting-started/glossary.md index 997aa65a0..759cb1cd1 100644 --- a/content/en/getting-started/glossary.md +++ b/content/en/getting-started/glossary.md @@ -94,7 +94,7 @@ Metadata at the beginning of each content page, separated from the content by fo ### identifier -An 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. +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 From 9829e2862662f788b9f808c50f8dd62a32b5479d Mon Sep 17 00:00:00 2001 From: Salim B Date: Wed, 25 Oct 2023 19:52:06 +0200 Subject: [PATCH 5/6] Mention Go variable naming rules --- content/en/templates/introduction.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/content/en/templates/introduction.md b/content/en/templates/introduction.md index 93666de28..2eb436f82 100644 --- a/content/en/templates/introduction.md +++ b/content/en/templates/introduction.md @@ -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 From 4175934933feca8fa1f9936ccf7d16b90b41e833 Mon Sep 17 00:00:00 2001 From: Joe Mooring Date: Thu, 26 Oct 2023 22:13:01 -0700 Subject: [PATCH 6/6] Fix broken link --- content/en/templates/lists/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/en/templates/lists/index.md b/content/en/templates/lists/index.md index e586460db..b48969e96 100644 --- a/content/en/templates/lists/index.md +++ b/content/en/templates/lists/index.md @@ -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