From 4d1e5b3054a03eef5115cd5c98eb07752692ae13 Mon Sep 17 00:00:00 2001 From: radishzzz Date: Sat, 31 May 2025 01:27:48 +0100 Subject: [PATCH] chore: switch the order of giscus and waline configurations --- astro.config.ts | 6 +++++ src/config.ts | 26 +++++++++---------- src/content/posts/guides/Theme Guide-en.md | 25 +++++++++--------- src/content/posts/guides/Theme Guide-es.md | 25 +++++++++--------- src/content/posts/guides/Theme Guide-ja.md | 25 +++++++++--------- src/content/posts/guides/Theme Guide-ru.md | 25 +++++++++--------- src/content/posts/guides/Theme Guide-zh-tw.md | 25 +++++++++--------- src/content/posts/guides/Theme Guide-zh.md | 25 +++++++++--------- 8 files changed, 91 insertions(+), 91 deletions(-) diff --git a/astro.config.ts b/astro.config.ts index f0c2b9a..a0edacb 100644 --- a/astro.config.ts +++ b/astro.config.ts @@ -146,4 +146,10 @@ export default defineConfig({ devToolbar: { enabled: false, }, + // For local development + // server: { + // headers: { + // 'Access-Control-Allow-Origin': 'https://giscus.app', + // }, + // }, }) diff --git a/src/config.ts b/src/config.ts index d0d98cf..4c451bd 100644 --- a/src/config.ts +++ b/src/config.ts @@ -71,6 +71,19 @@ export const themeConfig: ThemeConfig = { comment: { // enable comment system enabled: true, // true, false + // giscus + // https://giscus.app/ + giscus: { + // repo: 'radishzzz/comment-giscus', + repoID: 'R_kgDOOy1K0w', + category: 'Announcements', + categoryID: 'DIC_kwDOOy1K084CqwuZ', + mapping: 'pathname', + strict: '0', + reactionsEnabled: '1', + emitMetadata: '0', + inputPosition: 'bottom', + }, // waline // https://waline.js.org/en/ waline: { @@ -87,19 +100,6 @@ export const themeConfig: ThemeConfig = { // image uploader imageUploader: false, // true, false }, - // giscus - // https://giscus.app/ - giscus: { - // repo: 'radishzzz/comment-giscus', - repoID: 'R_kgDOOy1K0w', - category: 'Announcements', - categoryID: 'DIC_kwDOOy1K084CqwuZ', - mapping: 'pathname', - strict: '0', - reactionsEnabled: '1', - emitMetadata: '0', - inputPosition: 'bottom', - }, }, // COMMENT SETTINGS >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> END diff --git a/src/content/posts/guides/Theme Guide-en.md b/src/content/posts/guides/Theme Guide-en.md index 6cb80b6..f1e7517 100644 --- a/src/content/posts/guides/Theme Guide-en.md +++ b/src/content/posts/guides/Theme Guide-en.md @@ -99,6 +99,18 @@ global: { comment: { // enable comment system enabled: true // true, false + // giscus comment system + giscus: { + repo: 'radishzzz/comment-giscus' + repoID: 'R_kgDOOy1K0w' + category: 'Announcements' + categoryID: 'DIC_kwDOOy1K084CqwuZ' + mapping: 'pathname' + strict: '0' + reactionsEnabled: '1' + emitMetadata: '0' + inputPosition: 'bottom' + } // waline comment system waline: { // server url @@ -114,19 +126,6 @@ comment: { // image uploader imageUploader: false // true, false } - // giscus - // https://giscus.app/ - giscus: { - repo: 'radishzzz/comment-giscus' - repoID: 'R_kgDOOy1K0w' - category: 'Announcements' - categoryID: 'DIC_kwDOOy1K084CqwuZ' - mapping: 'pathname' - strict: '0' - reactionsEnabled: '1' - emitMetadata: '0' - inputPosition: 'bottom' - } } ``` diff --git a/src/content/posts/guides/Theme Guide-es.md b/src/content/posts/guides/Theme Guide-es.md index 12e58ea..e0b10d9 100644 --- a/src/content/posts/guides/Theme Guide-es.md +++ b/src/content/posts/guides/Theme Guide-es.md @@ -99,6 +99,18 @@ global: { comment: { // habilitar sistema de comentarios enabled: true // true, false + // sistema de comentarios giscus + giscus: { + repo: 'radishzzz/comment-giscus' + repoID: 'R_kgDOOy1K0w' + category: 'Announcements' + categoryID: 'DIC_kwDOOy1K084CqwuZ' + mapping: 'pathname' + strict: '0' + reactionsEnabled: '1' + emitMetadata: '0' + inputPosition: 'bottom' + } // sistema de comentarios waline waline: { // URL del servidor @@ -114,19 +126,6 @@ comment: { // cargador de imágenes imageUploader: false // true, false } - // giscus - // https://giscus.app/ - giscus: { - repo: 'radishzzz/comment-giscus' - repoID: 'R_kgDOOy1K0w' - category: 'Announcements' - categoryID: 'DIC_kwDOOy1K084CqwuZ' - mapping: 'pathname' - strict: '0' - reactionsEnabled: '1' - emitMetadata: '0' - inputPosition: 'bottom' - } } ``` diff --git a/src/content/posts/guides/Theme Guide-ja.md b/src/content/posts/guides/Theme Guide-ja.md index df6af90..88c9bd1 100644 --- a/src/content/posts/guides/Theme Guide-ja.md +++ b/src/content/posts/guides/Theme Guide-ja.md @@ -99,6 +99,18 @@ global: { comment: { // コメント機能を有効にする enabled: true // true, false + // giscus コメント + giscus: { + repo: 'radishzzz/comment-giscus' + repoID: 'R_kgDOOy1K0w' + category: 'Announcements' + categoryID: 'DIC_kwDOOy1K084CqwuZ' + mapping: 'pathname' + strict: '0' + reactionsEnabled: '1' + emitMetadata: '0' + inputPosition: 'bottom' + } // waline コメント waline: { // サーバー URL @@ -114,19 +126,6 @@ comment: { // 画像アップローダー imageUploader: false // true, false } - // giscus - // https://giscus.app/ - giscus: { - repo: 'radishzzz/comment-giscus' - repoID: 'R_kgDOOy1K0w' - category: 'Announcements' - categoryID: 'DIC_kwDOOy1K084CqwuZ' - mapping: 'pathname' - strict: '0' - reactionsEnabled: '1' - emitMetadata: '0' - inputPosition: 'bottom' - } } ``` diff --git a/src/content/posts/guides/Theme Guide-ru.md b/src/content/posts/guides/Theme Guide-ru.md index 06d1ab5..9e853de 100644 --- a/src/content/posts/guides/Theme Guide-ru.md +++ b/src/content/posts/guides/Theme Guide-ru.md @@ -99,6 +99,18 @@ global: { comment: { // включить систему комментариев enabled: true // true, false + // система комментариев giscus + giscus: { + repo: 'radishzzz/comment-giscus' + repoID: 'R_kgDOOy1K0w' + category: 'Announcements' + categoryID: 'DIC_kwDOOy1K084CqwuZ' + mapping: 'pathname' + strict: '0' + reactionsEnabled: '1' + emitMetadata: '0' + inputPosition: 'bottom' + } // система комментариев waline waline: { // URL сервера @@ -114,19 +126,6 @@ comment: { // загрузчик изображений imageUploader: false // true, false } - // giscus - // https://giscus.app/ - giscus: { - repo: 'radishzzz/comment-giscus' - repoID: 'R_kgDOOy1K0w' - category: 'Announcements' - categoryID: 'DIC_kwDOOy1K084CqwuZ' - mapping: 'pathname' - strict: '0' - reactionsEnabled: '1' - emitMetadata: '0' - inputPosition: 'bottom' - } } ``` diff --git a/src/content/posts/guides/Theme Guide-zh-tw.md b/src/content/posts/guides/Theme Guide-zh-tw.md index 80b88b4..848b9a6 100644 --- a/src/content/posts/guides/Theme Guide-zh-tw.md +++ b/src/content/posts/guides/Theme Guide-zh-tw.md @@ -99,6 +99,18 @@ global: { comment: { // 開啟評論 enabled: true // true, false + // giscus 評論 + giscus: { + repo: 'radishzzz/comment-giscus' + repoID: 'R_kgDOOy1K0w' + category: 'Announcements' + categoryID: 'DIC_kwDOOy1K084CqwuZ' + mapping: 'pathname' + strict: '0' + reactionsEnabled: '1' + emitMetadata: '0' + inputPosition: 'bottom' + } // waline 評論 waline: { // 服務器地址 @@ -114,19 +126,6 @@ comment: { // 圖片上傳 imageUploader: false // true, false } - // giscus - // https://giscus.app/ - giscus: { - repo: 'radishzzz/comment-giscus' - repoID: 'R_kgDOOy1K0w' - category: 'Announcements' - categoryID: 'DIC_kwDOOy1K084CqwuZ' - mapping: 'pathname' - strict: '0' - reactionsEnabled: '1' - emitMetadata: '0' - inputPosition: 'bottom' - } } ``` diff --git a/src/content/posts/guides/Theme Guide-zh.md b/src/content/posts/guides/Theme Guide-zh.md index 9fa2742..d4fb1cc 100644 --- a/src/content/posts/guides/Theme Guide-zh.md +++ b/src/content/posts/guides/Theme Guide-zh.md @@ -99,6 +99,18 @@ global: { comment: { // 开启评论 enabled: true // true, false + // giscus 评论 + giscus: { + repo: 'radishzzz/comment-giscus' + repoID: 'R_kgDOOy1K0w' + category: 'Announcements' + categoryID: 'DIC_kwDOOy1K084CqwuZ' + mapping: 'pathname' + strict: '0' + reactionsEnabled: '1' + emitMetadata: '0' + inputPosition: 'bottom' + } // waline 评论 waline: { // 服务器地址 @@ -114,19 +126,6 @@ comment: { // 图片上传 imageUploader: false // true, false } - // giscus - // https://giscus.app/ - giscus: { - repo: 'radishzzz/comment-giscus' - repoID: 'R_kgDOOy1K0w' - category: 'Announcements' - categoryID: 'DIC_kwDOOy1K084CqwuZ' - mapping: 'pathname' - strict: '0' - reactionsEnabled: '1' - emitMetadata: '0' - inputPosition: 'bottom' - } } ```