From fcd56dd21ca9a092b9779e9ba48ba2063921837a Mon Sep 17 00:00:00 2001 From: Jimmy Cai Date: Sat, 7 Sep 2024 13:25:26 +0200 Subject: [PATCH 01/12] fix: article category overflow (#1055) closes https://github.com/CaiJimmy/hugo-theme-stack/issues/1045 --- assets/scss/partials/article.scss | 1 + assets/scss/partials/layout/article.scss | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/scss/partials/article.scss b/assets/scss/partials/article.scss index e2c05a4..6c2feb1 100644 --- a/assets/scss/partials/article.scss +++ b/assets/scss/partials/article.scss @@ -131,6 +131,7 @@ .article-tags { display: flex; gap: 10px; + flex-wrap: wrap; a { color: var(--accent-color-text); diff --git a/assets/scss/partials/layout/article.scss b/assets/scss/partials/layout/article.scss index 2a61423..10e2706 100644 --- a/assets/scss/partials/layout/article.scss +++ b/assets/scss/partials/layout/article.scss @@ -67,7 +67,6 @@ } .article-tags { - flex-wrap: wrap; text-transform: unset; } From 374b25a60fbe333cb60f0593d679978721da8723 Mon Sep 17 00:00:00 2001 From: weeix Date: Sat, 7 Sep 2024 18:48:09 +0700 Subject: [PATCH 02/12] fix(i18n): fix unlocalized article publish/lastUpdated date (#1050) closes https://github.com/CaiJimmy/hugo-theme-stack/issues/1040 --- layouts/partials/article/components/details.html | 2 +- layouts/partials/article/components/footer.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/partials/article/components/details.html b/layouts/partials/article/components/details.html index cc0a0fc..7c27302 100644 --- a/layouts/partials/article/components/details.html +++ b/layouts/partials/article/components/details.html @@ -32,7 +32,7 @@
{{ partial "helper/icon" "date" }}
{{ end }} diff --git a/layouts/partials/article/components/footer.html b/layouts/partials/article/components/footer.html index 6853921..9795880 100644 --- a/layouts/partials/article/components/footer.html +++ b/layouts/partials/article/components/footer.html @@ -12,7 +12,7 @@
{{ partial "helper/icon" "clock" }} - {{ T "article.lastUpdatedOn" }} {{ .Lastmod.Format ( or .Site.Params.dateFormat.lastUpdated "Jan 02, 2006 15:04 MST" ) }} + {{ T "article.lastUpdatedOn" }} {{ .Lastmod | time.Format ( or .Site.Params.dateFormat.lastUpdated "Jan 02, 2006 15:04 MST" ) }}
{{- end -}} From 12f31dfd8a935f6b9877a30b884d8f2cb6e7c959 Mon Sep 17 00:00:00 2001 From: Anthony Simmon Date: Sat, 7 Sep 2024 08:22:17 -0400 Subject: [PATCH 03/12] fix: use Hugo's default RSS template value source for lastBuildDate (#1006) Use Hugo's default RSS template value source for lastBuildDate --- layouts/_default/rss.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml index 5874559..3d2e592 100644 --- a/layouts/_default/rss.xml +++ b/layouts/_default/rss.xml @@ -22,7 +22,7 @@ {{.}}{{ with $.Site.Params.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Params.Author.email }} {{.}}{{ with $.Site.Params.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Copyright }} {{.}}{{end}}{{ if not .Date.IsZero }} - {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}{{ end }} + {{ (index $pages.ByLastmod.Reverse 0).Lastmod.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}{{ end }} {{- with .OutputFormats.Get "RSS" -}} {{ printf "" .Permalink .MediaType | safeHTML }} {{- end -}} From 0558108e30bbe23da981fbdb237d2a0619c53bd2 Mon Sep 17 00:00:00 2001 From: DashJay <45532257+dashjay@users.noreply.github.com> Date: Sat, 7 Sep 2024 23:18:03 +0800 Subject: [PATCH 04/12] feat(comments): add support to Gitalk `proxy` parameter (#1012) Co-authored-by: Jimmy Cai --- exampleSite/hugo.yaml | 1 + layouts/partials/comments/provider/gitalk.html | 1 + 2 files changed, 2 insertions(+) diff --git a/exampleSite/hugo.yaml b/exampleSite/hugo.yaml index a1e3829..9e710b2 100644 --- a/exampleSite/hugo.yaml +++ b/exampleSite/hugo.yaml @@ -156,6 +156,7 @@ params: repo: clientID: clientSecret: + proxy: cusdis: host: diff --git a/layouts/partials/comments/provider/gitalk.html b/layouts/partials/comments/provider/gitalk.html index 95ca133..54bfcba 100644 --- a/layouts/partials/comments/provider/gitalk.html +++ b/layouts/partials/comments/provider/gitalk.html @@ -15,6 +15,7 @@ admin: ["{{- .admin -}}"], distractionFreeMode: false, // Facebook-like distraction free mode id: md5(location.pathname), // Max Location.pathname Legth:75 https://github.com/gitalk/gitalk/issues/102 + proxy: {{- .proxy -}}, }); (function () { if ( From 41a3e5ee1353b8af9a255e0c38efd57a9ae4799e Mon Sep 17 00:00:00 2001 From: ensag-dev <59049879+ensag-dev@users.noreply.github.com> Date: Sat, 7 Sep 2024 17:52:40 +0200 Subject: [PATCH 05/12] feat(i18n): add Occitan translations (#1034) --- i18n/oc.yaml | 72 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 i18n/oc.yaml diff --git a/i18n/oc.yaml b/i18n/oc.yaml new file mode 100644 index 0000000..1415350 --- /dev/null +++ b/i18n/oc.yaml @@ -0,0 +1,72 @@ +toggleMenu: + other: Alternar menú + +darkMode: + other: Mòde fosc + +list: + page: + one: "{{ .Count }} pagina" + other: "{{ .Count }} paginas" + + section: + other: Seccion + + subsection: + one: Josseccion + other: Josseccions + +article: + back: + other: Tornar + + tableOfContents: + other: Taula de contengut + + relatedContent: + other: Contenguts relacionats + + lastUpdatedOn: + other: Darrièra actualizacion + readingTime: + one: "{{ .Count }} minuta de lectura" + other: "{{ .Count }} minutas de lectura" + +notFound: + title: + other: Non trobat + + subtitle: + other: Aquesta pagina existís pas + +widget: + archives: + title: + other: Archiu + + more: + other: Mai + + tagCloud: + title: + other: Etiquetas + categoriesCloud: + title: + other: Categorias + +search: + title: + other: Cercar + + placeholder: + other: Picatz quicòm... + + resultTitle: + other: "#PAGES_COUNT paginas dins (#TIME_SECONDS segons)" + +footer: + builtWith: + other: Creat amb {{ .Generator }} + + designedBy: + other: Tàma {{ .Theme }} concebut per {{ .DesignedBy }} From 23ff70d41af9d66674a2d9747fe30f9f1e82e13b Mon Sep 17 00:00:00 2001 From: Vladimir Vitkov <5081863+zeridon@users.noreply.github.com> Date: Sat, 7 Sep 2024 18:56:17 +0300 Subject: [PATCH 06/12] feat(i18n): add Bulgarian translations (#1007) --- i18n/bg.yaml | 73 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 i18n/bg.yaml diff --git a/i18n/bg.yaml b/i18n/bg.yaml new file mode 100644 index 0000000..cf64a56 --- /dev/null +++ b/i18n/bg.yaml @@ -0,0 +1,73 @@ +toggleMenu: + other: Покажи Меню + +darkMode: + other: Тъмен Режим + +list: + page: + one: "{{ .Count }} страница" + other: "{{ .Count }} страници" + + section: + other: Секция + + subsection: + one: Подсекция + other: Подсекции + +article: + back: + other: Назад + + tableOfContents: + other: Съдържание + + relatedContent: + other: Свързано Съдържание + + lastUpdatedOn: + other: Последна промяна на + + readingTime: + one: "{{ .Count }} minute read" + other: "{{ .Count }} minute read" + +notFound: + title: + other: Не е намерено + + subtitle: + other: Страницата която търсите не е открита + +widget: + archives: + title: + other: Архиви + + more: + other: Повече + + tagCloud: + title: + other: Тагове + categoriesCloud: + title: + other: Категории + +search: + title: + other: Търсене + + placeholder: + other: Напишете нещо... + + resultTitle: + other: "#PAGES_COUNT страници (#TIME_SECONDS секунди)" + +footer: + builtWith: + other: Създадено с {{ .Generator }} + + designedBy: + other: Тема {{ .Theme }} създадена от {{ .DesignedBy }} From b3907acdaec6be16ae68f16677e7749ad729f6fc Mon Sep 17 00:00:00 2001 From: saikadaramakaisosjupita <162842238+saikadaramakaisosjupita@users.noreply.github.com> Date: Sat, 7 Sep 2024 18:59:59 +0300 Subject: [PATCH 07/12] doc: add backslash to `baseURL` in exampleSite (#1009) --- exampleSite/hugo.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exampleSite/hugo.yaml b/exampleSite/hugo.yaml index 9e710b2..cf9a4ba 100644 --- a/exampleSite/hugo.yaml +++ b/exampleSite/hugo.yaml @@ -1,4 +1,4 @@ -baseurl: https://example.com +baseurl: https://example.com/ languageCode: en-us theme: hugo-theme-stack paginate: 3 From bdcab89d86ff45466a2ddd67f27a75bfdd349c51 Mon Sep 17 00:00:00 2001 From: Syafa Adena Date: Sat, 7 Sep 2024 23:14:57 +0700 Subject: [PATCH 08/12] chore: bump Twikoo front-end to latest released version `1.6.39` (#1021) --- layouts/partials/comments/provider/twikoo.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/comments/provider/twikoo.html b/layouts/partials/comments/provider/twikoo.html index 53830dd..8c22507 100644 --- a/layouts/partials/comments/provider/twikoo.html +++ b/layouts/partials/comments/provider/twikoo.html @@ -1,4 +1,4 @@ - +