From 94a14a46652618dddb0a77ad46925d00bcced851 Mon Sep 17 00:00:00 2001 From: zhixuan <59254886+zhixuan666@users.noreply.github.com> Date: Mon, 5 Jul 2021 01:41:50 +0900 Subject: [PATCH 1/5] doc(README): fix Chinese doc URL (#253) Co-authored-by: Jimmy Cai --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9cd73fb..14079f1 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ ## Documentation & more information -[Documentation](https://docs.stack.jimmycai.com/) | [中文文档](https://docs.stack.jimmycai.com/v/zh-cn/) +[Documentation](https://docs.stack.jimmycai.com/) | [中文文档](https://docs.stack.jimmycai.com/zh/) ## Introduction From be2defe8fb5a37e4de71f11cfd665d63708c34a3 Mon Sep 17 00:00:00 2001 From: Jimmy Date: Sun, 4 Jul 2021 21:07:45 +0200 Subject: [PATCH 2/5] chore: update theme.toml to the latest format --- theme.toml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/theme.toml b/theme.toml index 333e351..e4c928e 100644 --- a/theme.toml +++ b/theme.toml @@ -5,23 +5,23 @@ name = "Stack" license = "GPL-3.0-only" licenselink = "https://github.com/CaiJimmy/hugo-theme-stack/blob/master/LICENSE" description = "Card-style Hugo theme designed for bloggers" -homepage = "https://theme-stack.jimmycai.com" -tags = [ - "blog", - "responsive", - "clean", - "light", - "dark", - "personal" -] +homepage = "https://github.com/CaiJimmy/hugo-theme-stack" +demosite = "https://theme-stack.jimmycai.com" + +tags = ["blog", "responsive", "clean", "light", "dark", "personal"] + features = [ "disqus", "photoswipe", "opengraph", - "widgets" + "widgets", + "darkmode", + "table of contents", + "search", ] + min_version = "0.78.0" [author] - name = "Jimmy Cai" - homepage = "https://jimmycai.com" +name = "Jimmy Cai" +homepage = "https://jimmycai.com" From 46908815fcd6fa343047f740d0b2c7fd0b9f5745 Mon Sep 17 00:00:00 2001 From: WingLim <643089849@qq.com> Date: Tue, 6 Jul 2021 18:25:27 +0800 Subject: [PATCH 3/5] chore: add toggleEl type (#256) --- assets/ts/colorScheme.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/ts/colorScheme.ts b/assets/ts/colorScheme.ts index acb33ee..8cb8a20 100644 --- a/assets/ts/colorScheme.ts +++ b/assets/ts/colorScheme.ts @@ -22,7 +22,7 @@ class StackColorScheme { localStorage.setItem(this.localStorageKey, this.currentScheme); } - private bindClick(toggleEl) { + private bindClick(toggleEl: HTMLElement) { toggleEl.addEventListener('click', (e) => { if (this.isDark()) { /// Disable dark mode From ac18f600c15c66ba2fb9b74021eb56bf70f6dc26 Mon Sep 17 00:00:00 2001 From: MikDal002 Date: Tue, 6 Jul 2021 12:29:22 +0200 Subject: [PATCH 4/5] feat(i18n): add Polish translation (#257) --- i18n/pl.yaml | 65 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 i18n/pl.yaml diff --git a/i18n/pl.yaml b/i18n/pl.yaml new file mode 100644 index 0000000..455e682 --- /dev/null +++ b/i18n/pl.yaml @@ -0,0 +1,65 @@ +toggleMenu: + other: Przełącz Menu + +darkMode: + other: Tryb ciemny + +list: + page: + one: "{{ .Count }} strona" + other: "{{ .Count }} stron" + + section: + other: Sekcja + + subsection: + one: Podsekcja + other: Podsekcje + +article: + back: + other: Wróć + + tableOfContents: + other: Spis treści + + relatedContents: + other: Powiązane artykuły + + lastUpdatedOn: + other: Ostatnio zaktualizowany + +notFound: + title: + other: Nie znaleziono + subtitle: + other: Ta strona nie istnieje + +widget: + archives: + title: + other: Archiwum + + more: + other: Więcej + + tagCloud: + title: + other: Tagi + +search: + title: + other: Szukaj + + placeholder: + other: Wpisz coś... + + resultTitle: + other: "#PAGES_COUNT stron (#TIME_SECONDS sekund)" + +footer: + builtWith: + other: Zbudowano z {{ .Generator }} + + designedBy: + other: Motyw {{ .Theme }} zaprojektowany przez {{ .DesignedBy }} From 1fa573dae3f2bc7d959ef659129ec88eff400441 Mon Sep 17 00:00:00 2001 From: Jimmy Cai Date: Tue, 6 Jul 2021 12:36:34 +0200 Subject: [PATCH 5/5] release: version 2.5.0 --- layouts/partials/footer/footer.html | 2 +- .../scss/style.scss_b95b077eb505d5c0aff8055eaced30ad.content | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/partials/footer/footer.html b/layouts/partials/footer/footer.html index db1ec9c..ecc22c5 100644 --- a/layouts/partials/footer/footer.html +++ b/layouts/partials/footer/footer.html @@ -1,4 +1,4 @@ -{{- $ThemeVersion := "2.4.0" -}} +{{- $ThemeVersion := "2.5.0" -}}