From b335d9ac5ed89d85831670f4ac46fe88ff9796a0 Mon Sep 17 00:00:00 2001 From: Caio Lente <7017340+clente@users.noreply.github.com> Date: Fri, 21 Jun 2024 16:26:22 -0300 Subject: [PATCH 1/9] Add hideReply to exampleSite and credits to README --- README.md | 4 ++++ exampleSite/hugo.toml | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3c75b1e..a084e50 100644 --- a/README.md +++ b/README.md @@ -115,6 +115,10 @@ already implemented: - Reply by email: if you supply an email address, the theme creates a "Reply to this post by email" button at the end of every post (see Kev Quirk's [original implementation](https://kevquirk.com/adding-the-post-title-to-my-reply-by-email-button)). + This button can be suppressed on a case-by-case by setting `hideReply: true` + in a post's [front matter](https://gohugo.io/content-management/front-matter/) + (see [PR #18](https://github.com/clente/hugo-bearcub/pull/18) by + [@chrsmutti](https://github.com/chrsmutti)). - `absfigure` shortcode: a shortcut to use the `figure` shortcode that also converts relative URLs into absolute URLs by using the `absURL` function. - Single-use CSS (EXPERIMENTAL): you can add some styles to a single page by diff --git a/exampleSite/hugo.toml b/exampleSite/hugo.toml index c037e60..04690c0 100644 --- a/exampleSite/hugo.toml +++ b/exampleSite/hugo.toml @@ -82,7 +82,8 @@ enableRobotsTXT = true facebook_admin = "0000000000" # Facebook Page Admin ID # Author metadata. This is mostly used for the RSS feed of your site, but the - # email is also added to the footer of each post + # email is also added to the footer of each post. You can hide the "reply to" + # link by using a `hideReply` param in front matter. [params.author] name = "John Doe" # Your name as shown in the RSS feed metadata email = "me@example.com" # Added to the footer so readers can reply to posts From e174badc98a1eff31cca7ca20d864805a7d67fd4 Mon Sep 17 00:00:00 2001 From: deafgod <122827520+d3af90d@users.noreply.github.com> Date: Fri, 21 Jun 2024 21:28:25 +0200 Subject: [PATCH 2/9] FIX - wrapping code block lines in original.css (#19) The lines of the code blocks of the HTML get wrapped on small/mobile screens. Adding this line make the scrolling overflow functional again. herman.css does not have this problem --- assets/original.css | 1 + 1 file changed, 1 insertion(+) diff --git a/assets/original.css b/assets/original.css index 3492237..e7aad94 100644 --- a/assets/original.css +++ b/assets/original.css @@ -89,6 +89,7 @@ pre code { white-space: pre-wrap; font-size: 14px; overflow-x: auto; + text-wrap: nowrap; } blockquote { From 7cc146b13f3b4f5a7ceb87ed5ce094c4cf6a365d Mon Sep 17 00:00:00 2001 From: handmeatowel <82960466+handmeatowel@users.noreply.github.com> Date: Tue, 3 Sep 2024 14:52:22 +0000 Subject: [PATCH 3/9] Update de.toml translations (#23) [skip-link]: translation is much improved by this [email-reply]: since it's not a comment (current translation) but a reply via email this updated translation is also clearer and the respective translation to the English original --- i18n/de.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/i18n/de.toml b/i18n/de.toml index fb9e866..c8216d1 100644 --- a/i18n/de.toml +++ b/i18n/de.toml @@ -8,7 +8,7 @@ other = "Antwort auf " [email-reply] - other = "Diesen Beitrag per Email kommentieren " + other = "Auf diesen Beitrag per Email antworten " [skip-link] - other = "Überspringen zum Hauptinhalt" \ No newline at end of file + other = "Zum Hauptinhalt" From 4efb706c064c9c0c55a21691f3dd60bf89738431 Mon Sep 17 00:00:00 2001 From: Tom Larrow Date: Tue, 17 Dec 2024 12:28:38 -0500 Subject: [PATCH 4/9] fix stretched images (#28) --- assets/original.css | 1 + 1 file changed, 1 insertion(+) diff --git a/assets/original.css b/assets/original.css index e7aad94..480cc6a 100644 --- a/assets/original.css +++ b/assets/original.css @@ -75,6 +75,7 @@ td { img { max-width: 100%; + height: auto; } code { From aa6a8b4f90c1e3cacb5a22d6c7313749ae8f7be2 Mon Sep 17 00:00:00 2001 From: Caio Lente <7017340+clente@users.noreply.github.com> Date: Tue, 17 Dec 2024 14:31:51 -0300 Subject: [PATCH 5/9] Update action versions --- .github/workflows/gh-pages.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index f7f133d..9f07252 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -16,7 +16,7 @@ jobs: fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod - name: Setup Hugo - uses: peaceiris/actions-hugo@v2 + uses: peaceiris/actions-hugo@v3 with: hugo-version: 'latest' extended: true @@ -25,7 +25,7 @@ jobs: run: hugo --minify --gc --destination ../public --source ./exampleSite --themesDir ../.. --baseURL https://clente.github.io/hugo-bearcub/ - name: Deploy - uses: peaceiris/actions-gh-pages@v3 + uses: peaceiris/actions-gh-pages@v4 if: github.ref == 'refs/heads/main' with: github_token: ${{ secrets.GITHUB_TOKEN }} From c3286b77b8e2a1222ec4afe74036530ffb905a13 Mon Sep 17 00:00:00 2001 From: Mirai Kumiko Date: Sun, 19 Jan 2025 15:48:33 +0100 Subject: [PATCH 6/9] Update rich-content.md (#34) WARN The "twitter", "tweet", and "twitter_simple" shortcodes were deprecated in v0.142.0 and will be removed in a future release. Please use the "x" shortcode instead. --- exampleSite/content/blog/rich-content.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exampleSite/content/blog/rich-content.md b/exampleSite/content/blog/rich-content.md index bf7e101..3c406af 100644 --- a/exampleSite/content/blog/rich-content.md +++ b/exampleSite/content/blog/rich-content.md @@ -23,7 +23,7 @@ Hugo ships with several [Built-in Shortcodes](https://gohugo.io/content-manageme ## Twitter Simple Shortcode -{{< tweet user="DesignReviewed" id="1085870671291310081" >}} +{{< x user="DesignReviewed" id="1085870671291310081" >}}
From 7d1bd7911aa76b99b9262d697077ffe4a5a67a7c Mon Sep 17 00:00:00 2001 From: Jaedeok Kim Date: Fri, 16 May 2025 04:31:38 +0900 Subject: [PATCH 7/9] Add Korean Translations (#35) --- i18n/ko.toml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 i18n/ko.toml diff --git a/i18n/ko.toml b/i18n/ko.toml new file mode 100644 index 0000000..35ac56e --- /dev/null +++ b/i18n/ko.toml @@ -0,0 +1,14 @@ +[filtering-for] + other = "태그 검색:" + +[no-posts] + other = "아직 작성된 게시물이 없습니다!" + +[email-subject] + other = "댓글: " + +[email-reply] + other = "이메일로 댓글 달기" + +[skip-link] + other = "본문으로 바로 가기" From 467c7b2925d8a7c6ada0d3f0dea3dc3be4cfb29d Mon Sep 17 00:00:00 2001 From: Ian Date: Fri, 20 Jun 2025 19:41:29 +0100 Subject: [PATCH 8/9] Removed deprecated site.social use (#41) --- layouts/partials/social_card.html | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/layouts/partials/social_card.html b/layouts/partials/social_card.html index d171da0..4f89b4f 100644 --- a/layouts/partials/social_card.html +++ b/layouts/partials/social_card.html @@ -74,17 +74,11 @@ {{ end }}{{ end }} {{- end }} -{{- /* Deprecate site.Social.facebook_admin in favor of site.Params.social.facebook_admin */}} {{- $facebookAdmin := "" }} {{- with site.Params.social }} {{- if reflect.IsMap . }} {{- $facebookAdmin = .facebook_admin }} {{- end }} -{{- else }} - {{- with site.Social.facebook_admin }} - {{- $facebookAdmin = . }} - {{- warnf "The social key in site configuration is deprecated. Use params.social.facebook_admin instead." }} - {{- end }} {{- end }} {{- /* Facebook Page Admin ID for Domain Insights */}} @@ -97,17 +91,11 @@ -{{- /* Deprecate site.Social.twitter in favor of site.Params.social.twitter */}} {{- $twitterSite := "" }} {{- with site.Params.social }} {{- if reflect.IsMap . }} {{- $twitterSite = .twitter }} {{- end }} -{{- else }} - {{- with site.Social.twitter }} - {{- $twitterSite = . }} - {{- warnf "The social key in site configuration is deprecated. Use params.social.twitter instead." }} - {{- end }} {{- end }} {{- with $twitterSite }} From 1d12a76549445b767fa02902caf30cec7ceaecf9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yi=C4=9Fit=20Alt=C4=B1nay?= Date: Fri, 22 Aug 2025 22:24:12 +0300 Subject: [PATCH 9/9] Add Turkish support (#33) This commit adds Turkish support. --- i18n/tr.toml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 i18n/tr.toml diff --git a/i18n/tr.toml b/i18n/tr.toml new file mode 100644 index 0000000..a761585 --- /dev/null +++ b/i18n/tr.toml @@ -0,0 +1,14 @@ +[filtering-for] + other = "Filtrelenilen etiket" + +[no-posts] + other = "Henüz gönderi yok" + +[email-subject] + other = "Şu gönderiye yanıt: " + +[email-reply] + other = "Bu gönderiye eposta ile yanıt ver" + +[skip-link] + other = "Ana içeriğe geç"