From 23240c3367164c9300eb8895a7837c7f07ff5b9c Mon Sep 17 00:00:00 2001 From: Jack Jackson Date: Wed, 19 Jan 2022 08:20:45 -0800 Subject: [PATCH] Override i18n to replace "taxonomy term" with "tag" ref: https://gohugobrasil.netlify.app/content-management/multilingual/ --- blog/config.toml | 5 +++++ blog/content/posts/cheating-at-word-games-part-2.md | 2 ++ blog/content/posts/cheating-at-word-games-part-3.md | 2 ++ blog/content/posts/cheating-at-word-games.md | 2 ++ blog/content/posts/commenting-enabled.md | 2 ++ blog/content/posts/my-first-post.md | 2 ++ blog/i18n/bg.toml | 2 ++ blog/i18n/de.toml | 2 ++ blog/i18n/en.toml | 2 ++ blog/i18n/es.toml | 2 ++ blog/i18n/fr.toml | 2 ++ blog/i18n/hi.toml | 2 ++ blog/i18n/hu.toml | 2 ++ blog/i18n/it.toml | 2 ++ blog/i18n/nl.toml | 2 ++ blog/i18n/no.toml | 2 ++ blog/i18n/pt.toml | 2 ++ blog/i18n/ru.toml | 2 ++ blog/i18n/sv.toml | 2 ++ blog/i18n/tr.toml | 2 ++ blog/i18n/uk.toml | 2 ++ blog/i18n/zh-tw.toml | 2 ++ blog/i18n/zh.toml | 2 ++ 23 files changed, 49 insertions(+) create mode 100644 blog/i18n/bg.toml create mode 100644 blog/i18n/de.toml create mode 100644 blog/i18n/en.toml create mode 100644 blog/i18n/es.toml create mode 100644 blog/i18n/fr.toml create mode 100644 blog/i18n/hi.toml create mode 100644 blog/i18n/hu.toml create mode 100644 blog/i18n/it.toml create mode 100644 blog/i18n/nl.toml create mode 100644 blog/i18n/no.toml create mode 100644 blog/i18n/pt.toml create mode 100644 blog/i18n/ru.toml create mode 100644 blog/i18n/sv.toml create mode 100644 blog/i18n/tr.toml create mode 100644 blog/i18n/uk.toml create mode 100644 blog/i18n/zh-tw.toml create mode 100644 blog/i18n/zh.toml diff --git a/blog/config.toml b/blog/config.toml index 0cc6d49..0aac871 100644 --- a/blog/config.toml +++ b/blog/config.toml @@ -13,3 +13,8 @@ SectionPagesMenu = "main" linkedin = "https://www.linkedin.com/in/jack-jackson-14a47441/" custom_css = ['inlinespoiler.css'] show_reading_time = true + +# That is, explicitly disabling `categories` taxonomy +# https://gohugo.io/content-management/taxonomies/#example-removing-default-taxonomies +[taxonomies] + tag = 'tags' diff --git a/blog/content/posts/cheating-at-word-games-part-2.md b/blog/content/posts/cheating-at-word-games-part-2.md index c6a23ae..7b1214d 100644 --- a/blog/content/posts/cheating-at-word-games-part-2.md +++ b/blog/content/posts/cheating-at-word-games-part-2.md @@ -2,6 +2,8 @@ title: "Cheating at Word Games: Part 2" date: 2021-12-29T08:53:32-08:00 math: true +tags: + - wordle --- This is a sequel to my [previous post]({{< ref "/posts/cheating-at-word-games" >}}), where I laid out a Information Theoretical approach to algorithmically solving [Wordle](https://www.powerlanguage.co.uk/wordle/) puzzles. diff --git a/blog/content/posts/cheating-at-word-games-part-3.md b/blog/content/posts/cheating-at-word-games-part-3.md index 9fdcfd5..3ef423c 100644 --- a/blog/content/posts/cheating-at-word-games-part-3.md +++ b/blog/content/posts/cheating-at-word-games-part-3.md @@ -1,6 +1,8 @@ --- title: "Cheating at Word Games: Part 3" date: 2022-01-05T07:50:29-08:00 +tags: + - wordle --- The third in a series on [Wordle]({{< ref "/posts/cheating-at-word-games" >}}). diff --git a/blog/content/posts/cheating-at-word-games.md b/blog/content/posts/cheating-at-word-games.md index d3b8ec1..cdf3369 100644 --- a/blog/content/posts/cheating-at-word-games.md +++ b/blog/content/posts/cheating-at-word-games.md @@ -2,6 +2,8 @@ title: "Cheating at Word Games" date: 2021-12-28T07:18:24-08:00 math: true +tags: + - wordle --- The other day, I saw the word game [Wordle](https://www.powerlanguage.co.uk/wordle/) going around on my Twitter feed. The game prompts you to guess a 5-letter word in a [Mastermind](https://en.wikipedia.org/wiki/Mastermind_(board_game))-like style - every letter in your guess is reported as being correct, as present (i.e. that letter occurs somewhere in the answer, but is misplaced), or as absent. diff --git a/blog/content/posts/commenting-enabled.md b/blog/content/posts/commenting-enabled.md index 4cbfd9e..36e63f8 100644 --- a/blog/content/posts/commenting-enabled.md +++ b/blog/content/posts/commenting-enabled.md @@ -1,6 +1,8 @@ --- title: "Commenting Enabled" date: 2021-12-30T06:31:00-08:00 +tags: + - metaBlogging --- If everything has worked as expected, comments should now be enabled on this blog via Disqus. Don't make me regret that. Ensure that your comments pass through the [Three Gates](https://medium.com/zen-pills/the-3-gates-of-speech-305eaaa999c9) - they should be true, necessary, and kind. If you want to espouse homophobia, transphobia, racism, fascism, anti-vax, or anything similar, you are not welcome here. Black Lives Matter, Trans Rights Are Human Rights. diff --git a/blog/content/posts/my-first-post.md b/blog/content/posts/my-first-post.md index fc4007c..79dc1fa 100644 --- a/blog/content/posts/my-first-post.md +++ b/blog/content/posts/my-first-post.md @@ -1,6 +1,8 @@ --- title: "My First Post" date: 2021-12-04T11:21:26-08:00 +tags: + - metaBlogging --- In true navel-gazey meta style, the first post on this blog is a description of how I set up the blog. diff --git a/blog/i18n/bg.toml b/blog/i18n/bg.toml new file mode 100644 index 0000000..b8ed9ad --- /dev/null +++ b/blog/i18n/bg.toml @@ -0,0 +1,2 @@ +[taxonomyPageList] +other = "Below you will find pages that utilize the tag “{{ .Title }}”" diff --git a/blog/i18n/de.toml b/blog/i18n/de.toml new file mode 100644 index 0000000..b8ed9ad --- /dev/null +++ b/blog/i18n/de.toml @@ -0,0 +1,2 @@ +[taxonomyPageList] +other = "Below you will find pages that utilize the tag “{{ .Title }}”" diff --git a/blog/i18n/en.toml b/blog/i18n/en.toml new file mode 100644 index 0000000..b8ed9ad --- /dev/null +++ b/blog/i18n/en.toml @@ -0,0 +1,2 @@ +[taxonomyPageList] +other = "Below you will find pages that utilize the tag “{{ .Title }}”" diff --git a/blog/i18n/es.toml b/blog/i18n/es.toml new file mode 100644 index 0000000..b8ed9ad --- /dev/null +++ b/blog/i18n/es.toml @@ -0,0 +1,2 @@ +[taxonomyPageList] +other = "Below you will find pages that utilize the tag “{{ .Title }}”" diff --git a/blog/i18n/fr.toml b/blog/i18n/fr.toml new file mode 100644 index 0000000..b8ed9ad --- /dev/null +++ b/blog/i18n/fr.toml @@ -0,0 +1,2 @@ +[taxonomyPageList] +other = "Below you will find pages that utilize the tag “{{ .Title }}”" diff --git a/blog/i18n/hi.toml b/blog/i18n/hi.toml new file mode 100644 index 0000000..b8ed9ad --- /dev/null +++ b/blog/i18n/hi.toml @@ -0,0 +1,2 @@ +[taxonomyPageList] +other = "Below you will find pages that utilize the tag “{{ .Title }}”" diff --git a/blog/i18n/hu.toml b/blog/i18n/hu.toml new file mode 100644 index 0000000..b8ed9ad --- /dev/null +++ b/blog/i18n/hu.toml @@ -0,0 +1,2 @@ +[taxonomyPageList] +other = "Below you will find pages that utilize the tag “{{ .Title }}”" diff --git a/blog/i18n/it.toml b/blog/i18n/it.toml new file mode 100644 index 0000000..b8ed9ad --- /dev/null +++ b/blog/i18n/it.toml @@ -0,0 +1,2 @@ +[taxonomyPageList] +other = "Below you will find pages that utilize the tag “{{ .Title }}”" diff --git a/blog/i18n/nl.toml b/blog/i18n/nl.toml new file mode 100644 index 0000000..b8ed9ad --- /dev/null +++ b/blog/i18n/nl.toml @@ -0,0 +1,2 @@ +[taxonomyPageList] +other = "Below you will find pages that utilize the tag “{{ .Title }}”" diff --git a/blog/i18n/no.toml b/blog/i18n/no.toml new file mode 100644 index 0000000..b8ed9ad --- /dev/null +++ b/blog/i18n/no.toml @@ -0,0 +1,2 @@ +[taxonomyPageList] +other = "Below you will find pages that utilize the tag “{{ .Title }}”" diff --git a/blog/i18n/pt.toml b/blog/i18n/pt.toml new file mode 100644 index 0000000..b8ed9ad --- /dev/null +++ b/blog/i18n/pt.toml @@ -0,0 +1,2 @@ +[taxonomyPageList] +other = "Below you will find pages that utilize the tag “{{ .Title }}”" diff --git a/blog/i18n/ru.toml b/blog/i18n/ru.toml new file mode 100644 index 0000000..b8ed9ad --- /dev/null +++ b/blog/i18n/ru.toml @@ -0,0 +1,2 @@ +[taxonomyPageList] +other = "Below you will find pages that utilize the tag “{{ .Title }}”" diff --git a/blog/i18n/sv.toml b/blog/i18n/sv.toml new file mode 100644 index 0000000..b8ed9ad --- /dev/null +++ b/blog/i18n/sv.toml @@ -0,0 +1,2 @@ +[taxonomyPageList] +other = "Below you will find pages that utilize the tag “{{ .Title }}”" diff --git a/blog/i18n/tr.toml b/blog/i18n/tr.toml new file mode 100644 index 0000000..b8ed9ad --- /dev/null +++ b/blog/i18n/tr.toml @@ -0,0 +1,2 @@ +[taxonomyPageList] +other = "Below you will find pages that utilize the tag “{{ .Title }}”" diff --git a/blog/i18n/uk.toml b/blog/i18n/uk.toml new file mode 100644 index 0000000..b8ed9ad --- /dev/null +++ b/blog/i18n/uk.toml @@ -0,0 +1,2 @@ +[taxonomyPageList] +other = "Below you will find pages that utilize the tag “{{ .Title }}”" diff --git a/blog/i18n/zh-tw.toml b/blog/i18n/zh-tw.toml new file mode 100644 index 0000000..b8ed9ad --- /dev/null +++ b/blog/i18n/zh-tw.toml @@ -0,0 +1,2 @@ +[taxonomyPageList] +other = "Below you will find pages that utilize the tag “{{ .Title }}”" diff --git a/blog/i18n/zh.toml b/blog/i18n/zh.toml new file mode 100644 index 0000000..b8ed9ad --- /dev/null +++ b/blog/i18n/zh.toml @@ -0,0 +1,2 @@ +[taxonomyPageList] +other = "Below you will find pages that utilize the tag “{{ .Title }}”"