From 5f95201576cf29c4722958bf38a0e628356fa39d Mon Sep 17 00:00:00 2001 From: radishzzz Date: Sun, 13 Apr 2025 16:21:14 +0100 Subject: [PATCH] chore: remove unnecessary image.domains configuration --- astro.config.ts | 5 ----- package.json | 2 +- src/content/posts/guides/Theme Guide-en.md | 2 +- src/content/posts/guides/Theme Guide-es.md | 2 +- src/content/posts/guides/Theme Guide-ja.md | 6 +++--- src/content/posts/guides/Theme Guide-ru.md | 4 ++-- src/content/posts/guides/Theme Guide-zh-tw.md | 4 ++-- src/content/posts/guides/Theme Guide-zh.md | 4 ++-- 8 files changed, 12 insertions(+), 17 deletions(-) diff --git a/astro.config.ts b/astro.config.ts index 40ceca7..37fd03e 100644 --- a/astro.config.ts +++ b/astro.config.ts @@ -16,7 +16,6 @@ import { remarkReadingTime } from './src/plugins/remark-reading-time' const url = themeConfig.site.url const locale = themeConfig.global.locale const linkPrefetch = themeConfig.preload.linkPrefetch -const imageDomain = new URL(themeConfig.preload.imageHostURL as string).hostname export default defineConfig({ site: url, @@ -26,10 +25,6 @@ export default defineConfig({ prefetchAll: true, defaultStrategy: linkPrefetch, }, - image: { - domains: [imageDomain], - remotePatterns: [{ protocol: 'https' }], - }, i18n: { locales: Object.entries(langMap).map(([path, codes]) => ({ path, diff --git a/package.json b/package.json index 66efc2e..1b0dbf0 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "astro-theme-retypeset", "type": "module", "version": "0.0.1", - "packageManager": "pnpm@10.7.0", + "packageManager": "pnpm@10.8.0", "repository": "https://github.com/radishzzz/astro-theme-retypeset", "scripts": { "dev": "astro check && astro dev", diff --git a/src/content/posts/guides/Theme Guide-en.md b/src/content/posts/guides/Theme Guide-en.md index 28fc9d6..f48d173 100644 --- a/src/content/posts/guides/Theme Guide-en.md +++ b/src/content/posts/guides/Theme Guide-en.md @@ -355,7 +355,7 @@ RSS feed page styles. diff --git a/src/content/posts/guides/Theme Guide-es.md b/src/content/posts/guides/Theme Guide-es.md index a6c8096..34c19c8 100644 --- a/src/content/posts/guides/Theme Guide-es.md +++ b/src/content/posts/guides/Theme Guide-es.md @@ -355,7 +355,7 @@ Estilos de página del feed RSS. diff --git a/src/content/posts/guides/Theme Guide-ja.md b/src/content/posts/guides/Theme Guide-ja.md index 8754542..9ab5cf0 100644 --- a/src/content/posts/guides/Theme Guide-ja.md +++ b/src/content/posts/guides/Theme Guide-ja.md @@ -10,7 +10,7 @@ lang: ja abbrlink: theme-guide --- -Retypesetは[Astro](https://astro.build/)フレームワークをベースにした静的ブログテーマで、日本語では「再編集」を意味します。このガイドではRetypesetテーマの設定方法、新しい記事の作成方法、その他の設定オプションについて説明します。 +Retypesetは、日本語では「再組版」と呼ばれる、[Astro](https://astro.build/) フレームワークをベースにした静的ブログテーマです。このガイドではRetypesetテーマの設定方法、新しい記事の作成方法、その他の設定オプションについて説明します。 ## テーマ設定 @@ -223,7 +223,7 @@ abbrlink: theme-guide --- ``` -### 高度な設定の説明 +### 高度な設定 #### draft @@ -355,7 +355,7 @@ RSSフィードページスタイル。 diff --git a/src/content/posts/guides/Theme Guide-ru.md b/src/content/posts/guides/Theme Guide-ru.md index 992cfd5..cc02dbe 100644 --- a/src/content/posts/guides/Theme Guide-ru.md +++ b/src/content/posts/guides/Theme Guide-ru.md @@ -10,7 +10,7 @@ lang: ru abbrlink: theme-guide --- -Retypeset - это статическая тема для блога, основанная на фреймворке [Astro](https://astro.build/). Это руководство охватывает настройку темы, создание новых статей и дополнительные параметры конфигурации. +Retypeset — это статическая тема блога, основанная на фреймворке [Astro](https://astro.build/). Это руководство охватывает настройку темы, создание новых статей и дополнительные параметры конфигурации. ## Конфигурация темы @@ -355,7 +355,7 @@ getImageOptions: (_path, page) => ({ diff --git a/src/content/posts/guides/Theme Guide-zh-tw.md b/src/content/posts/guides/Theme Guide-zh-tw.md index 447e64c..f6ddf9e 100644 --- a/src/content/posts/guides/Theme Guide-zh-tw.md +++ b/src/content/posts/guides/Theme Guide-zh-tw.md @@ -223,7 +223,7 @@ abbrlink: theme-guide --- ``` -### 進階配置介紹 +### 進階配置 #### draft @@ -355,7 +355,7 @@ RSS 訂閱頁配色。 diff --git a/src/content/posts/guides/Theme Guide-zh.md b/src/content/posts/guides/Theme Guide-zh.md index ee94158..d6011ae 100644 --- a/src/content/posts/guides/Theme Guide-zh.md +++ b/src/content/posts/guides/Theme Guide-zh.md @@ -223,7 +223,7 @@ abbrlink: theme-guide --- ``` -### 进阶配置介绍 +### 进阶配置 #### draft @@ -355,7 +355,7 @@ RSS 订阅页配色。