chore: remove unnecessary image.domains configuration

This commit is contained in:
radishzzz 2025-04-13 16:21:14 +01:00
parent 37b95a4e37
commit 5f95201576
8 changed files with 12 additions and 17 deletions

View file

@ -16,7 +16,6 @@ import { remarkReadingTime } from './src/plugins/remark-reading-time'
const url = themeConfig.site.url const url = themeConfig.site.url
const locale = themeConfig.global.locale const locale = themeConfig.global.locale
const linkPrefetch = themeConfig.preload.linkPrefetch const linkPrefetch = themeConfig.preload.linkPrefetch
const imageDomain = new URL(themeConfig.preload.imageHostURL as string).hostname
export default defineConfig({ export default defineConfig({
site: url, site: url,
@ -26,10 +25,6 @@ export default defineConfig({
prefetchAll: true, prefetchAll: true,
defaultStrategy: linkPrefetch, defaultStrategy: linkPrefetch,
}, },
image: {
domains: [imageDomain],
remotePatterns: [{ protocol: 'https' }],
},
i18n: { i18n: {
locales: Object.entries(langMap).map(([path, codes]) => ({ locales: Object.entries(langMap).map(([path, codes]) => ({
path, path,

View file

@ -2,7 +2,7 @@
"name": "astro-theme-retypeset", "name": "astro-theme-retypeset",
"type": "module", "type": "module",
"version": "0.0.1", "version": "0.0.1",
"packageManager": "pnpm@10.7.0", "packageManager": "pnpm@10.8.0",
"repository": "https://github.com/radishzzz/astro-theme-retypeset", "repository": "https://github.com/radishzzz/astro-theme-retypeset",
"scripts": { "scripts": {
"dev": "astro check && astro dev", "dev": "astro check && astro dev",

View file

@ -355,7 +355,7 @@ RSS feed page styles.
<!-- public/rss-style.xsl --> <!-- public/rss-style.xsl -->
<style type="text/css"> <style type="text/css">
body{margin:0;color:oklch(25% 0.005 298)} /* font color */ body{color:oklch(25% 0.005 298)} /* font color */
.bg-white{background-color:oklch(0.96 0.005 298)!important} /* background color */ .bg-white{background-color:oklch(0.96 0.005 298)!important} /* background color */
.text-gray{color:oklch(0.25 0.005 298 / 75%)!important} /* secondary font color */ .text-gray{color:oklch(0.25 0.005 298 / 75%)!important} /* secondary font color */
</style> </style>

View file

@ -355,7 +355,7 @@ Estilos de página del feed RSS.
<!-- public/rss-style.xsl --> <!-- public/rss-style.xsl -->
<style type="text/css"> <style type="text/css">
body{margin:0;color:oklch(25% 0.005 298)} /* color de fuente */ body{color:oklch(25% 0.005 298)} /* color de fuente */
.bg-white{background-color:oklch(0.96 0.005 298)!important} /* color de fondo */ .bg-white{background-color:oklch(0.96 0.005 298)!important} /* color de fondo */
.text-gray{color:oklch(0.25 0.005 298 / 75%)!important} /* color de fuente secundario */ .text-gray{color:oklch(0.25 0.005 298 / 75%)!important} /* color de fuente secundario */
</style> </style>

View file

@ -10,7 +10,7 @@ lang: ja
abbrlink: theme-guide abbrlink: theme-guide
--- ---
Retypesetは[Astro](https://astro.build/)フレームワークをベースにした静的ブログテーマで、日本語では「再編集」を意味します。このガイドではRetypesetテーマの設定方法、新しい記事の作成方法、その他の設定オプションについて説明します。 Retypesetは、日本語では「再組版」と呼ばれる、[Astro](https://astro.build/) フレームワークをベースにした静的ブログテーマです。このガイドではRetypesetテーマの設定方法、新しい記事の作成方法、その他の設定オプションについて説明します。
## テーマ設定 ## テーマ設定
@ -223,7 +223,7 @@ abbrlink: theme-guide
--- ---
``` ```
### 高度な設定の説明 ### 高度な設定
#### draft #### draft
@ -355,7 +355,7 @@ RSSフィードページスタイル。
<!-- public/rss-style.xsl --> <!-- public/rss-style.xsl -->
<style type="text/css"> <style type="text/css">
body{margin:0;color:oklch(25% 0.005 298)} /* フォントカラー */ body{color:oklch(25% 0.005 298)} /* フォントカラー */
.bg-white{background-color:oklch(0.96 0.005 298)!important} /* 背景色 */ .bg-white{background-color:oklch(0.96 0.005 298)!important} /* 背景色 */
.text-gray{color:oklch(0.25 0.005 298 / 75%)!important} /* セカンダリフォントカラー */ .text-gray{color:oklch(0.25 0.005 298 / 75%)!important} /* セカンダリフォントカラー */
</style> </style>

View file

@ -10,7 +10,7 @@ lang: ru
abbrlink: theme-guide abbrlink: theme-guide
--- ---
Retypeset - это статическая тема для блога, основанная на фреймворке [Astro](https://astro.build/). Это руководство охватывает настройку темы, создание новых статей и дополнительные параметры конфигурации. Retypeset — это статическая тема блога, основанная на фреймворке [Astro](https://astro.build/). Это руководство охватывает настройку темы, создание новых статей и дополнительные параметры конфигурации.
## Конфигурация темы ## Конфигурация темы
@ -355,7 +355,7 @@ getImageOptions: (_path, page) => ({
<!-- public/rss-style.xsl --> <!-- public/rss-style.xsl -->
<style type="text/css"> <style type="text/css">
body{margin:0;color:oklch(25% 0.005 298)} /* цвет шрифта */ body{color:oklch(25% 0.005 298)} /* цвет шрифта */
.bg-white{background-color:oklch(0.96 0.005 298)!important} /* цвет фона */ .bg-white{background-color:oklch(0.96 0.005 298)!important} /* цвет фона */
.text-gray{color:oklch(0.25 0.005 298 / 75%)!important} /* вторичный цвет шрифта */ .text-gray{color:oklch(0.25 0.005 298 / 75%)!important} /* вторичный цвет шрифта */
</style> </style>

View file

@ -223,7 +223,7 @@ abbrlink: theme-guide
--- ---
``` ```
### 進階配置介紹 ### 進階配置
#### draft #### draft
@ -355,7 +355,7 @@ RSS 訂閱頁配色。
<!-- public/rss-style.xsl --> <!-- public/rss-style.xsl -->
<style type="text/css"> <style type="text/css">
body{margin:0;color:oklch(25% 0.005 298)} /* 字體顏色 */ body{color:oklch(25% 0.005 298)} /* 字體顏色 */
.bg-white{background-color:oklch(0.96 0.005 298)!important} /* 背景顏色 */ .bg-white{background-color:oklch(0.96 0.005 298)!important} /* 背景顏色 */
.text-gray{color:oklch(0.25 0.005 298 / 75%)!important} /* 次要字體顏色 */ .text-gray{color:oklch(0.25 0.005 298 / 75%)!important} /* 次要字體顏色 */
</style> </style>

View file

@ -223,7 +223,7 @@ abbrlink: theme-guide
--- ---
``` ```
### 进阶配置介绍 ### 进阶配置
#### draft #### draft
@ -355,7 +355,7 @@ RSS 订阅页配色。
<!-- public/rss-style.xsl --> <!-- public/rss-style.xsl -->
<style type="text/css"> <style type="text/css">
body{margin:0;color:oklch(25% 0.005 298)} /* 字体颜色 */ body{color:oklch(25% 0.005 298)} /* 字体颜色 */
.bg-white{background-color:oklch(0.96 0.005 298)!important} /* 背景颜色 */ .bg-white{background-color:oklch(0.96 0.005 298)!important} /* 背景颜色 */
.text-gray{color:oklch(0.25 0.005 298 / 75%)!important} /* 次要字体颜色 */ .text-gray{color:oklch(0.25 0.005 298 / 75%)!important} /* 次要字体颜色 */
</style> </style>