From 488d53937401c8bd1b3c598df501bb4323e2bd0d Mon Sep 17 00:00:00 2001 From: radishzzz Date: Sun, 25 May 2025 22:28:22 +0100 Subject: [PATCH] docs: update theme guide --- src/config.ts | 1 + src/content/posts/guides/Theme Guide-en.md | 3 ++- src/content/posts/guides/Theme Guide-es.md | 3 ++- src/content/posts/guides/Theme Guide-ja.md | 3 ++- src/content/posts/guides/Theme Guide-ru.md | 3 ++- src/content/posts/guides/Theme Guide-zh-tw.md | 3 ++- src/content/posts/guides/Theme Guide-zh.md | 3 ++- 7 files changed, 13 insertions(+), 6 deletions(-) diff --git a/src/config.ts b/src/config.ts index cf67402..d96193a 100644 --- a/src/config.ts +++ b/src/config.ts @@ -162,6 +162,7 @@ export const themeConfig: ThemeConfig = { // docs: https://docs.astro.build/en/guides/prefetch/#prefetch-strategies linkPrefetch: 'viewport', // hover, tap, viewport, load // image hosting url + // optimize remote images in Markdown files to avoid cumulative layout shift imageHostURL: 'https://image.radishzz.cc', // custom google analytics js // for users who route analytics javascript to a customized domain diff --git a/src/content/posts/guides/Theme Guide-en.md b/src/content/posts/guides/Theme Guide-en.md index ea99bba..45757a3 100644 --- a/src/content/posts/guides/Theme Guide-en.md +++ b/src/content/posts/guides/Theme Guide-en.md @@ -75,7 +75,7 @@ global: { // language of the site root path '/' locale: 'zh' // de, en, es, fr, ja, ko, pl, pt, ru, zh, zh-tw // more languages - // generate multi-language paths such as '/es/' '/ru/' + // generate multi-language paths such as '/en/' '/es/' // not fill in the locale code above again, can be an empty array [] moreLocales: ['en', 'es', 'ja', 'ru', 'zh-tw'] // ['de', 'en', 'es', 'fr', 'ja', 'ko', 'pl', 'pt', 'ru', 'zh', 'zh-tw'] // font style @@ -188,6 +188,7 @@ preload: { linkPrefetch: 'viewport' // hover, tap, viewport, load // image hosting url imageHostURL: 'https://image.radishzz.cc' + // optimize remote images in Markdown files to avoid cumulative layout shift // custom google analytics js // for users who route analytics javascript to a customized domain customGoogleAnalyticsJS: '' diff --git a/src/content/posts/guides/Theme Guide-es.md b/src/content/posts/guides/Theme Guide-es.md index 6ee6440..5ee0c5b 100644 --- a/src/content/posts/guides/Theme Guide-es.md +++ b/src/content/posts/guides/Theme Guide-es.md @@ -75,7 +75,7 @@ global: { // idioma de la ruta raíz del sitio '/' locale: 'zh' // de, en, es, fr, ja, ko, pl, pt, ru, zh, zh-tw // más idiomas - // genera rutas multilingües como '/es/' '/ru/' + // genera rutas multilingües como '/en/' '/es/' // no incluir el código de idioma anterior nuevamente, puede ser un array vacío [] moreLocales: ['en', 'es', 'ja', 'ru', 'zh-tw'] // ['de', 'en', 'es', 'fr', 'ja', 'ko', 'pl', 'pt', 'ru', 'zh', 'zh-tw'] // estilo de fuente @@ -188,6 +188,7 @@ preload: { linkPrefetch: 'viewport' // hover, tap, viewport, load // URL de alojamiento de imágenes imageHostURL: 'https://image.radishzz.cc' + // optimizar imágenes remotas en archivos Markdown para evitar cambios de diseño acumulativos // js personalizado de google analytics // para usuarios que redirigen javascript de analytics a un dominio personalizado customGoogleAnalyticsJS: '' diff --git a/src/content/posts/guides/Theme Guide-ja.md b/src/content/posts/guides/Theme Guide-ja.md index c6af34e..c3e6f68 100644 --- a/src/content/posts/guides/Theme Guide-ja.md +++ b/src/content/posts/guides/Theme Guide-ja.md @@ -75,7 +75,7 @@ global: { // サイトのルートパス '/' の言語 locale: 'zh' // de, en, es, fr, ja, ko, pl, pt, ru, zh, zh-tw // その他の言語 - // '/ja/' '/en/' などの多言語パスを生成 + // '/en/' '/es/' などの多言語パスを生成 // デフォルト言語を重複して入力しないでください、空の配列 [] も可能です moreLocales: ['en', 'es', 'ja', 'ru', 'zh-tw'] // ['de', 'en', 'es', 'fr', 'ja', 'ko', 'pl', 'pt', 'ru', 'zh', 'zh-tw'] // フォントスタイル @@ -188,6 +188,7 @@ preload: { linkPrefetch: 'viewport' // hover, tap, viewport, load // 画像ホスティング URL imageHostURL: 'https://image.radishzz.cc' + // Markdownファイル内のリモート画像を最適化してレイアウトシフトを防止 // カスタム Google Analytics JS // アナリティクス JavaScript をカスタムドメインにルーティングするユーザー向け customGoogleAnalyticsJS: '' diff --git a/src/content/posts/guides/Theme Guide-ru.md b/src/content/posts/guides/Theme Guide-ru.md index 1fd2eae..76c1761 100644 --- a/src/content/posts/guides/Theme Guide-ru.md +++ b/src/content/posts/guides/Theme Guide-ru.md @@ -75,7 +75,7 @@ global: { // язык корневого пути сайта '/' locale: 'zh' // de, en, es, fr, ja, ko, pl, pt, ru, zh, zh-tw // дополнительные языки - // создает многоязычные пути, такие как '/es/' '/ru/' + // создает многоязычные пути, такие как '/en/' '/es/' // не указывайте код языка, указанный выше, можно оставить пустым массивом [] moreLocales: ['en', 'es', 'ja', 'ru', 'zh-tw'] // ['de', 'en', 'es', 'fr', 'ja', 'ko', 'pl', 'pt', 'ru', 'zh', 'zh-tw'] // стиль шрифта @@ -188,6 +188,7 @@ preload: { linkPrefetch: 'viewport' // hover, tap, viewport, load // URL хостинга изображений imageHostURL: 'https://image.radishzz.cc' + // оптимизировать удаленные изображения в файлах Markdown для избежания накопления сдвига макета // пользовательский скрипт Google Analytics // для пользователей, которые направляют JavaScript аналитики на собственный домен customGoogleAnalyticsJS: '' diff --git a/src/content/posts/guides/Theme Guide-zh-tw.md b/src/content/posts/guides/Theme Guide-zh-tw.md index e06d8c2..fc18b4d 100644 --- a/src/content/posts/guides/Theme Guide-zh-tw.md +++ b/src/content/posts/guides/Theme Guide-zh-tw.md @@ -75,7 +75,7 @@ global: { // 站點根路徑 '/' 的語言 locale: 'zh' // de, en, es, fr, ja, ko, pl, pt, ru, zh, zh-tw // 更多語言 - // 生成 '/ja/' '/en/' 等多語言路徑 + // 生成 '/en/' '/es/' 等多語言路徑 // 不要重複填寫默認語言,可以為空 [] moreLocales: ['en', 'es', 'ja', 'ru', 'zh-tw'] // ['de', 'en', 'es', 'fr', 'ja', 'ko', 'pl', 'pt', 'ru', 'zh', 'zh-tw'] // 字體樣式 @@ -188,6 +188,7 @@ preload: { linkPrefetch: 'viewport' // hover, tap, viewport, load // 圖床地址 imageHostURL: 'https://image.radishzz.cc' + // 優化 Markdown 文件中的遠程圖片以避免佈局抖動 // 定制 google analytics js // 適用於路由 google analytics js 到自定義域名的用戶 customGoogleAnalyticsJS: '' diff --git a/src/content/posts/guides/Theme Guide-zh.md b/src/content/posts/guides/Theme Guide-zh.md index 6185fe4..f8aee06 100644 --- a/src/content/posts/guides/Theme Guide-zh.md +++ b/src/content/posts/guides/Theme Guide-zh.md @@ -75,7 +75,7 @@ global: { // 站点根路径 '/' 的语言 locale: 'zh' // de, en, es, fr, ja, ko, pl, pt, ru, zh, zh-tw // 更多语言 - // 生成 '/ja/' '/en/' 等多语言路径 + // 生成 '/en/' '/es/' 等多语言路径 // 不要重复填写默认语言,可以为空 [] moreLocales: ['en', 'es', 'ja', 'ru', 'zh-tw'] // ['de', 'en', 'es', 'fr', 'ja', 'ko', 'pl', 'pt', 'ru', 'zh', 'zh-tw'] // 字体样式 @@ -188,6 +188,7 @@ preload: { linkPrefetch: 'viewport' // hover, tap, viewport, load // 图床地址 imageHostURL: 'https://image.radishzz.cc' + // 优化 Markdown 文件中的远程图片以避免布局抖动 // 定制 google analytics js // 适用于路由 google analytics js 到自定义域名的用户 customGoogleAnalyticsJS: ''