From 5d9062444164c11b15f98f270a8615bf0f06f1bf Mon Sep 17 00:00:00 2001 From: Brandon Szeto <99768694+brandonszeto@users.noreply.github.com> Date: Wed, 16 Aug 2023 05:21:23 -0700 Subject: [PATCH 1/9] doc: Inline math example previously not working as intended (#834) Inline math example previously not working as intended --- exampleSite/content/post/math-typesetting/index.md | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/exampleSite/content/post/math-typesetting/index.md b/exampleSite/content/post/math-typesetting/index.md index 48fdc79..ce8d0bf 100644 --- a/exampleSite/content/post/math-typesetting/index.md +++ b/exampleSite/content/post/math-typesetting/index.md @@ -37,11 +37,7 @@ In this example we will be using [KaTeX](https://katex.org/) ### Examples -{{< math.inline >}} -

-Inline math: \(\varphi = \dfrac{1+\sqrt5}{2}= 1.6180339887…\) -

-{{}} +Inline math: $\varphi = \dfrac{1+\sqrt5}{2}= 1.6180339887…$ Block math: $$ From c6d1d73dd21ff5e1c9c52db358e49857b3e0a6df Mon Sep 17 00:00:00 2001 From: Jimmy Cai Date: Thu, 17 Aug 2023 11:15:07 +0200 Subject: [PATCH 2/9] chore: update issue report template to include minimal reproducible example (#864) --- .github/ISSUE_TEMPLATE/bug_report.yml | 26 ++++++++------------------ 1 file changed, 8 insertions(+), 18 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index d1d9a10..07743e1 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -1,17 +1,15 @@ name: Bug Report description: File a bug report -title: "[Bug]: " -labels: ["bug"] body: - type: markdown attributes: value: | - Thanks for taking the time to fill out this bug report! Please provide as much information as possible and make sure you have checked the [documentation](https://docs.stack.jimmycai.com/). + Thanks for taking the time to fill out this bug report! Please provide as much information as possible and make sure you have checked the [documentation](https://stack.jimmycai.com/). - type: textarea id: what-happened attributes: label: What happened? - description: Also tell us, what did you expect to happen? Please be as detailed as possible, include screenshots and any other information that might help us reproduce the problem. + description: Also tell us, what did you expect to happen? Please be as detailed as possible, including screenshots and any other information that might help us reproduce the problem. placeholder: Tell us what you see! validations: required: true @@ -55,21 +53,13 @@ body: label: Relevant log output description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks. render: shell - - type: markdown - attributes: - value: | - If the issue is not present on the [demo site](https://demo.stack.jimmycai.com), in order to better understand the problem, please provide the link to the source code of your website (not the generated HTML). - Or link to a minimal reproduction of the problem if there are sensible data. - type: input - id: bug-url + id: minimal-reproduction-url attributes: - label: Link to the page with bug - placeholder: https://demo.stack.jimmycai.com - value: https://demo.stack.jimmycai.com + label: Link to Minimal Reproducible Example + description: | + Use [CaiJimmy/hugo-theme-stack-starter](https://github.com/CaiJimmy/hugo-theme-stack-starter) to create a minimal reproduction of the problem. + A minimal reproduction is required so that others can help debug your issue. If a report is vague (e.g. just a generic error message) and has no reproduction, it may be auto-closed. + placeholder: https://github.com/username/your-repository validations: required: true - - type: input - id: source-repo - attributes: - label: Link to the source repository - placeholder: https://github.com/CaiJimmy/hugo-theme-stack From d197d9b249aeb724713f8b0c8b10c35c0c058f01 Mon Sep 17 00:00:00 2001 From: Alex Hua Date: Sun, 27 Aug 2023 19:48:42 +0800 Subject: [PATCH 3/9] fix: invalid params used in requiredMeta of waline (#811) Fix the invalid parameters used in waline requiredMeta --- config.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/config.yaml b/config.yaml index fcb4bcb..fafd340 100644 --- a/config.yaml +++ b/config.yaml @@ -73,9 +73,8 @@ params: emoji: - https://cdn.jsdelivr.net/gh/walinejs/emojis/weibo requiredMeta: - - name - - email - - url + - nick + - mail placeholder: locale: admin: Admin From 40712eb7819719a7b868f5ec6b4f7f888013edb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Trkan?= Date: Sun, 27 Aug 2023 18:03:26 +0200 Subject: [PATCH 4/9] feat(i18n): add Czech support (#793) --- i18n/cs.yaml | 73 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 i18n/cs.yaml diff --git a/i18n/cs.yaml b/i18n/cs.yaml new file mode 100644 index 0000000..7b9b519 --- /dev/null +++ b/i18n/cs.yaml @@ -0,0 +1,73 @@ +toggleMenu: + other: Skrýt menu + +darkMode: + other: Tmavý režim + +list: + page: + one: "{{ .Count }} stránka" + other: "{{ .Count }} stránek" + + section: + other: Kategorie + + subsection: + one: Podkategorie + other: Podkategorie + +article: + back: + other: Zpět + + tableOfContents: + other: Obsah + + relatedContent: + other: Související + + lastUpdatedOn: + other: Naposledy aktualizováno + + readingTime: + one: "{{ .Count }} minuta" + other: "{{ .Count }} minut" + +notFound: + title: + other: Nenalezeno + + subtitle: + other: Tato stránka neexistuje + +widget: + archives: + title: + other: Archivy + + more: + other: Více + + tagCloud: + title: + other: Štítky + categoriesCloud: + title: + other: Kategorie + +search: + title: + other: Hledat + + placeholder: + other: Zadejte něco... + + resultTitle: + other: "#PAGES_COUNT stránek (#TIME_SECONDS sekund)" + +footer: + builtWith: + other: Vytvořeno pomocí {{ .Generator }} + + designedBy: + other: Šablona {{ .Theme }} od {{ .DesignedBy }} From d11923f32b063c67c72d6bdb1c8ce32ac0fe7c01 Mon Sep 17 00:00:00 2001 From: Alex Hua Date: Mon, 28 Aug 2023 00:06:00 +0800 Subject: [PATCH 5/9] fix: a waline config param with false value will be ignored (#812) Co-authored-by: Jimmy Cai --- layouts/partials/comments/provider/waline.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/comments/provider/waline.html b/layouts/partials/comments/provider/waline.html index 21b6507..9d1a2a0 100644 --- a/layouts/partials/comments/provider/waline.html +++ b/layouts/partials/comments/provider/waline.html @@ -19,7 +19,7 @@ {{- $replaceKeys := dict "serverurl" "serverURL" "requiredmeta" "requiredMeta" "wordlimit" "wordLimit" "pagesize" "pageSize" "imageuploader" "imageUploader" "texrenderer" "texRenderer" -}} {{- range $key, $val := . -}} - {{- if $val -}} + {{- if ne $val nil -}} {{- $replaceKey := index $replaceKeys $key -}} {{- $k := default $key $replaceKey -}} From ce0a252bfa76a1e6f53d3b8a830e9cf61ee0c977 Mon Sep 17 00:00:00 2001 From: Jimmy Cai Date: Sun, 27 Aug 2023 18:49:37 +0200 Subject: [PATCH 6/9] release: 3.19.0 --- layouts/partials/footer/footer.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/footer/footer.html b/layouts/partials/footer/footer.html index 45bed2c..ade2f7b 100644 --- a/layouts/partials/footer/footer.html +++ b/layouts/partials/footer/footer.html @@ -1,4 +1,4 @@ -{{- $ThemeVersion := "3.18.0" -}} +{{- $ThemeVersion := "3.19.0" -}}