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/3] 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/3] 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/3] 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