From 967ccb52da8cf52ae0cb1e4c2ba2b089b2edb0c0 Mon Sep 17 00:00:00 2001
From: Sidharth R <122173059+hugo-sid@users.noreply.github.com>
Date: Thu, 7 Mar 2024 15:32:02 +0530
Subject: [PATCH 1/3] fix: twitter_simple shortcode, closes #172
---
exampleSite/content/de/posts/rich-content/index.md | 2 +-
exampleSite/content/en/posts/rich-content/index.md | 2 +-
exampleSite/content/it/posts/rich-content/index.md | 2 +-
exampleSite/content/ru/posts/rich-content/index.md | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/exampleSite/content/de/posts/rich-content/index.md b/exampleSite/content/de/posts/rich-content/index.md
index 56d1f426..08674152 100644
--- a/exampleSite/content/de/posts/rich-content/index.md
+++ b/exampleSite/content/de/posts/rich-content/index.md
@@ -19,7 +19,7 @@ Hugo ships with several [Built-in Shortcodes](https://gohugo.io/content-manageme
## Twitter Simple Shortcode
-{{< twitter_simple DesignReviewed 1085870671291310081 >}}
+{{< twitter_simple user="DesignReviewed" id="1085870671291310081" >}}
diff --git a/exampleSite/content/en/posts/rich-content/index.md b/exampleSite/content/en/posts/rich-content/index.md
index 56d1f426..08674152 100644
--- a/exampleSite/content/en/posts/rich-content/index.md
+++ b/exampleSite/content/en/posts/rich-content/index.md
@@ -19,7 +19,7 @@ Hugo ships with several [Built-in Shortcodes](https://gohugo.io/content-manageme
## Twitter Simple Shortcode
-{{< twitter_simple DesignReviewed 1085870671291310081 >}}
+{{< twitter_simple user="DesignReviewed" id="1085870671291310081" >}}
diff --git a/exampleSite/content/it/posts/rich-content/index.md b/exampleSite/content/it/posts/rich-content/index.md
index 70508095..59485552 100644
--- a/exampleSite/content/it/posts/rich-content/index.md
+++ b/exampleSite/content/it/posts/rich-content/index.md
@@ -19,7 +19,7 @@ Hugo viene distribuito con alcuni [Shortcode integrati](https://gohugo.io/conten
## Semplice Shortcode Per Twitter
-{{< twitter_simple DesignReviewed 1085870671291310081 >}}
+{{< twitter_simple user="DesignReviewed" id="1085870671291310081" >}}
diff --git a/exampleSite/content/ru/posts/rich-content/index.md b/exampleSite/content/ru/posts/rich-content/index.md
index 17864bd1..0bdc57b8 100644
--- a/exampleSite/content/ru/posts/rich-content/index.md
+++ b/exampleSite/content/ru/posts/rich-content/index.md
@@ -19,7 +19,7 @@ Hugo поставляется с несколькими [встроенными
## Простой шорт код для Twitter
-{{< twitter_simple DesignReviewed 1085870671291310081 >}}
+{{< twitter_simple user="DesignReviewed" id="1085870671291310081" >}}
From 10aff14b86b23756944ba8dce76d8e05d7f34d54 Mon Sep 17 00:00:00 2001
From: Michiel van der Winden
Date: Thu, 7 Mar 2024 10:04:00 +0100
Subject: [PATCH 2/3] Fixes paginator issue since hugo v0.123.0
Pages of kind "page" don't allow the creation of a paginator (.Paginate
or .Paginator) in the newest version of hugo.
Pages of kind "section" (e.g. /posts) still allow the creation. This fix
adds a check for the kind of page and excludes pages with kind "page"
from creating a paginator.
---
layouts/partials/meta/post.html | 2 ++
1 file changed, 2 insertions(+)
diff --git a/layouts/partials/meta/post.html b/layouts/partials/meta/post.html
index 3c8cb77d..d0c3bd5a 100644
--- a/layouts/partials/meta/post.html
+++ b/layouts/partials/meta/post.html
@@ -2,6 +2,7 @@
{{ if eq .Section "posts" }}
{{ $ISO_date := dateFormat "2006-01-02T15:04:05Z0700" .Date | safeHTML }}
+ {{ if ne .Page.Kind "page" }}
{{ $paginator := .Paginate (where .Pages "Section" "blog") }}
{{ if $paginator }}
@@ -13,6 +14,7 @@
{{end }}
{{end }}
+ {{end }}
From 457a902db25fe187d8bd7ce95fe4c1462941806f Mon Sep 17 00:00:00 2001
From: Michiel van der Winden
Date: Thu, 7 Mar 2024 10:43:02 +0100
Subject: [PATCH 3/3] netlify.toml HUGO_VERSION to 0.123.7
---
netlify.toml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/netlify.toml b/netlify.toml
index 8a370bb6..158036fa 100644
--- a/netlify.toml
+++ b/netlify.toml
@@ -7,7 +7,7 @@
command = "cd exampleSite && hugo --gc --themesDir ../.."
[build.environment]
- HUGO_VERSION = "0.122.0"
+ HUGO_VERSION = "0.123.7"
HUGO_THEME = "repo"
# Deploy Preview context: all deploys generated from