mirror of
https://github.com/reonokiy/blog.nokiy.net.git
synced 2025-06-15 19:22:52 +02:00
chore: update theme config
This commit is contained in:
parent
a94ff5b266
commit
dc260f3f6c
6 changed files with 32 additions and 30 deletions
1
.vscode/settings.json
vendored
1
.vscode/settings.json
vendored
|
@ -62,6 +62,7 @@
|
||||||
"abbrlink",
|
"abbrlink",
|
||||||
"antfu",
|
"antfu",
|
||||||
"Artículos",
|
"Artículos",
|
||||||
|
"astrodotbuild",
|
||||||
"astrojs",
|
"astrojs",
|
||||||
"attributify",
|
"attributify",
|
||||||
"belleza",
|
"belleza",
|
||||||
|
|
|
@ -10,12 +10,12 @@ const { title, subtitle, i18nTitle } = themeConfig.site
|
||||||
const headerTitle = i18nTitle ? currentUI.title : title
|
const headerTitle = i18nTitle ? currentUI.title : title
|
||||||
const headerSubtitle = i18nTitle ? currentUI.subtitle : subtitle
|
const headerSubtitle = i18nTitle ? currentUI.subtitle : subtitle
|
||||||
|
|
||||||
const { titleSpace } = themeConfig.global
|
const { titleGap } = themeConfig.global
|
||||||
const marginBottom = {
|
const marginBottom = {
|
||||||
1: 'mb-0.625',
|
1: 'mb-0.625',
|
||||||
2: 'mb-1.875',
|
2: 'mb-1.875',
|
||||||
3: 'mb-3.125',
|
3: 'mb-3.125',
|
||||||
}[titleSpace] || 'mb-3.125'
|
}[titleGap] || 'mb-3.125'
|
||||||
---
|
---
|
||||||
|
|
||||||
<header class="mb-10.625 lg:fixed">
|
<header class="mb-10.625 lg:fixed">
|
||||||
|
|
|
@ -10,12 +10,12 @@ const { title, subtitle, i18nTitle } = themeConfig.site
|
||||||
const headerTitle = i18nTitle ? currentUI.title : title
|
const headerTitle = i18nTitle ? currentUI.title : title
|
||||||
const headerSubtitle = i18nTitle ? currentUI.subtitle : subtitle
|
const headerSubtitle = i18nTitle ? currentUI.subtitle : subtitle
|
||||||
|
|
||||||
const { titleSpace } = themeConfig.global
|
const { titleGap } = themeConfig.global
|
||||||
const marginBottom = {
|
const marginBottom = {
|
||||||
1: 'mb-1.625',
|
1: 'mb-1.625',
|
||||||
2: 'mb-2.875',
|
2: 'mb-2.875',
|
||||||
3: 'mb-4.125',
|
3: 'mb-4.125',
|
||||||
}[titleSpace] || 'mb-2.875'
|
}[titleGap] || 'mb-2.875'
|
||||||
---
|
---
|
||||||
|
|
||||||
<header class="mb-10.625 lg:hidden">
|
<header class="mb-10.625 lg:hidden">
|
||||||
|
|
|
@ -5,11 +5,11 @@ export const themeConfig: ThemeConfig = {
|
||||||
site: {
|
site: {
|
||||||
// site title
|
// site title
|
||||||
title: 'Retypeset',
|
title: 'Retypeset',
|
||||||
// site subtitle (optional)
|
// site subtitle
|
||||||
subtitle: 'Revive the beauty of typography',
|
subtitle: '再现版式之美',
|
||||||
// use i18n title/subtitle from src/i18n/ui.ts instead of static ones above
|
// use i18n title/subtitle from src/i18n/ui.ts instead of static ones above
|
||||||
i18nTitle: true,
|
i18nTitle: true,
|
||||||
// site description for SEO
|
// site description
|
||||||
description: 'Retypeset is a static blog theme based on the Astro framework, inspired by Typography. Retypeset establishes a new visual standard and reimagines the layout of all pages, offering a reading experience similar to paper books, reviving the beauty of typography. Details in every sight, elegance in every space.',
|
description: 'Retypeset is a static blog theme based on the Astro framework, inspired by Typography. Retypeset establishes a new visual standard and reimagines the layout of all pages, offering a reading experience similar to paper books, reviving the beauty of typography. Details in every sight, elegance in every space.',
|
||||||
// author name
|
// author name
|
||||||
author: 'radishzz',
|
author: 'radishzz',
|
||||||
|
@ -17,16 +17,17 @@ export const themeConfig: ThemeConfig = {
|
||||||
url: 'https://retypeset.radishzz.cc',
|
url: 'https://retypeset.radishzz.cc',
|
||||||
// favicon url
|
// favicon url
|
||||||
// support only SVG, PNG and ICO
|
// support only SVG, PNG and ICO
|
||||||
favicon: '/image/Favicon.svg', // https://example.com/favicon.svg
|
favicon: '/image/Favicon.svg', // or https://example.com/favicon.svg
|
||||||
},
|
},
|
||||||
// SITE INFORMATION >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> END
|
// SITE INFORMATION >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> END
|
||||||
|
|
||||||
// COLOR SETTINGS >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> START
|
// COLOR SETTINGS >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> START
|
||||||
color: {
|
color: {
|
||||||
// default theme mode
|
// theme mode
|
||||||
mode: 'light', // light, dark
|
mode: 'light', // light, dark
|
||||||
light: {
|
light: {
|
||||||
// title color
|
// title color
|
||||||
|
// oklch color picker: https://oklch.com/
|
||||||
primary: 'oklch(25% 0.005 298)',
|
primary: 'oklch(25% 0.005 298)',
|
||||||
// text color
|
// text color
|
||||||
secondary: 'oklch(40% 0.005 298)',
|
secondary: 'oklch(40% 0.005 298)',
|
||||||
|
@ -38,6 +39,7 @@ export const themeConfig: ThemeConfig = {
|
||||||
},
|
},
|
||||||
dark: {
|
dark: {
|
||||||
// title color
|
// title color
|
||||||
|
// oklch color picker: https://oklch.com/
|
||||||
primary: 'oklch(88% 0.005 298)',
|
primary: 'oklch(88% 0.005 298)',
|
||||||
// text color
|
// text color
|
||||||
secondary: 'oklch(77% 0.005 298)',
|
secondary: 'oklch(77% 0.005 298)',
|
||||||
|
@ -55,21 +57,23 @@ export const themeConfig: ThemeConfig = {
|
||||||
// default language
|
// default language
|
||||||
locale: 'zh', // zh, zh-tw, ja, en, es, ru
|
locale: 'zh', // zh, zh-tw, ja, en, es, ru
|
||||||
// more languages
|
// more languages
|
||||||
// not fill in the locale above again
|
// not fill in the locale code above again
|
||||||
moreLocales: ['zh-tw', 'ja', 'en', 'es', 'ru'], // ['zh', 'zh-tw', 'ja', 'en', 'es', 'ru']
|
moreLocales: ['zh-tw', 'ja', 'en', 'es', 'ru'], // ['zh', 'zh-tw', 'ja', 'en', 'es', 'ru']
|
||||||
// font styles for text
|
// font styles for text
|
||||||
fontStyle: 'sans', // sans, serif
|
fontStyle: 'sans', // sans, serif
|
||||||
// date format for posts
|
// date format for posts
|
||||||
dateFormat: 'YYYY-MM-DD', // YYYY-MM-DD, MM-DD-YYYY, DD-MM-YYYY, MONTH DAY YYYY, DAY MONTH YYYY
|
dateFormat: 'YYYY-MM-DD', // YYYY-MM-DD, MM-DD-YYYY, DD-MM-YYYY, MONTH DAY YYYY, DAY MONTH YYYY
|
||||||
// space between title and subtitle
|
// gap between title and subtitle
|
||||||
titleSpace: 2, // 1, 2, 3
|
titleGap: 2, // 1, 2, 3
|
||||||
},
|
},
|
||||||
// GLOBAL SETTINGS >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> END
|
// GLOBAL SETTINGS >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> END
|
||||||
|
|
||||||
// COMMENT SETTINGS >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> START
|
// COMMENT SETTINGS >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> START
|
||||||
comment: {
|
comment: {
|
||||||
|
// waline comment system
|
||||||
|
// docs: https://waline.js.org/en/
|
||||||
waline: {
|
waline: {
|
||||||
// waline server url
|
// server url
|
||||||
serverURL: 'https://retypeset-comment.radishzz.cc',
|
serverURL: 'https://retypeset-comment.radishzz.cc',
|
||||||
// emoji url
|
// emoji url
|
||||||
emoji: [
|
emoji: [
|
||||||
|
@ -83,35 +87,32 @@ export const themeConfig: ThemeConfig = {
|
||||||
// bug: unable to hide image uploader icon
|
// bug: unable to hide image uploader icon
|
||||||
imageUploader: false, // true, false
|
imageUploader: false, // true, false
|
||||||
},
|
},
|
||||||
// disqus: TODO
|
|
||||||
// giscus: TODO
|
|
||||||
// twikoo: TODO
|
|
||||||
},
|
},
|
||||||
// COMMENT SETTINGS >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> END
|
// COMMENT SETTINGS >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> END
|
||||||
|
|
||||||
// SEO SETTINGS >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> START
|
// SEO SETTINGS >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> START
|
||||||
seo: {
|
seo: {
|
||||||
// @twitter ID
|
// @twitter ID
|
||||||
twitterID: '',
|
twitterID: '@astrodotbuild',
|
||||||
// site verification
|
// site verification
|
||||||
verification: {
|
verification: {
|
||||||
// Google Search Console
|
// google search console
|
||||||
// docs: https://search.google.com/search-console
|
// docs: https://search.google.com/search-console
|
||||||
google: '',
|
google: '',
|
||||||
// Bing Webmaster Tools
|
// bing webmaster tools
|
||||||
// docs: https://www.bing.com/webmasters
|
// docs: https://www.bing.com/webmasters
|
||||||
bing: '',
|
bing: '',
|
||||||
// Yandex Webmaster
|
// yandex webmaster
|
||||||
// docs: https://webmaster.yandex.com
|
// docs: https://webmaster.yandex.com
|
||||||
yandex: '',
|
yandex: '',
|
||||||
// Baidu Search
|
// baidu search
|
||||||
// docs: https://ziyuan.baidu.com
|
// docs: https://ziyuan.baidu.com
|
||||||
baidu: '',
|
baidu: '',
|
||||||
},
|
},
|
||||||
// Google Analytics
|
// google analytics
|
||||||
// docs: https://analytics.google.com
|
// docs: https://analytics.google.com
|
||||||
googleAnalyticsID: '',
|
googleAnalyticsID: '',
|
||||||
// Umami Analytics
|
// umami analytics
|
||||||
// docs: https://cloud.umami.is
|
// docs: https://cloud.umami.is
|
||||||
umamiAnalyticsID: '520af332-bfb7-4e7c-9386-5f273ee3d697',
|
umamiAnalyticsID: '520af332-bfb7-4e7c-9386-5f273ee3d697',
|
||||||
// follow verification
|
// follow verification
|
||||||
|
@ -122,9 +123,6 @@ export const themeConfig: ThemeConfig = {
|
||||||
// user ID
|
// user ID
|
||||||
userID: '',
|
userID: '',
|
||||||
},
|
},
|
||||||
// Open Graph
|
|
||||||
// Screenshot of home page for Open Graph: ./public/image/Screenshot.png
|
|
||||||
// Logo on the Open Graph: ./public/image/Astro-Icon-Dark.png
|
|
||||||
},
|
},
|
||||||
// SEO SETTINGS >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> END
|
// SEO SETTINGS >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> END
|
||||||
|
|
||||||
|
@ -163,11 +161,14 @@ export const themeConfig: ThemeConfig = {
|
||||||
commentURL: 'https://comment.radishzz.cc',
|
commentURL: 'https://comment.radishzz.cc',
|
||||||
// image hosting url
|
// image hosting url
|
||||||
imageHostURL: 'https://image.radishzz.cc',
|
imageHostURL: 'https://image.radishzz.cc',
|
||||||
// If you proxy analytics js to the custom domain, you can fill in below.
|
// custom google analytics js
|
||||||
|
// for users who route analytics javascript to a customized domain
|
||||||
// See https://gist.github.com/xiaopc/0602f06ca465d76bd9efd3dda9393738
|
// See https://gist.github.com/xiaopc/0602f06ca465d76bd9efd3dda9393738
|
||||||
customGoogleAnalyticsJS: '',
|
customGoogleAnalyticsJS: '',
|
||||||
|
// custom umami analytics js
|
||||||
|
// for users who deploy umami on their own, or route analytics javascript to a customized domain
|
||||||
// see https://github.com/umami-software/umami/discussions/1026
|
// see https://github.com/umami-software/umami/discussions/1026
|
||||||
customUmamiAnalyticsJS: 'https://views.radishzz.cc/script.js',
|
customUmamiAnalyticsJS: 'https://js.radishzz.cc/jquery.min.js',
|
||||||
},
|
},
|
||||||
// PRELOAD SETTINGS >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> END
|
// PRELOAD SETTINGS >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> END
|
||||||
}
|
}
|
||||||
|
|
|
@ -161,7 +161,7 @@ window
|
||||||
type="text/partytown"
|
type="text/partytown"
|
||||||
crossorigin="anonymous"
|
crossorigin="anonymous"
|
||||||
data-website-id={umamiAnalyticsID}
|
data-website-id={umamiAnalyticsID}
|
||||||
src={customUmamiAnalyticsJS || 'https://analytics.umami.is/script.js'}
|
src={customUmamiAnalyticsJS || 'https://cloud.umami.is/script.js'}
|
||||||
data-cache="true"
|
data-cache="true"
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
|
2
src/types/index.d.ts
vendored
2
src/types/index.d.ts
vendored
|
@ -35,7 +35,7 @@ export interface ThemeConfig {
|
||||||
moreLocales: typeof supportedLangs[number][]
|
moreLocales: typeof supportedLangs[number][]
|
||||||
fontStyle: 'sans' | 'serif'
|
fontStyle: 'sans' | 'serif'
|
||||||
dateFormat: 'YYYY-MM-DD' | 'MM-DD-YYYY' | 'DD-MM-YYYY' | 'MONTH DAY YYYY' | 'DAY MONTH YYYY'
|
dateFormat: 'YYYY-MM-DD' | 'MM-DD-YYYY' | 'DD-MM-YYYY' | 'MONTH DAY YYYY' | 'DAY MONTH YYYY'
|
||||||
titleSpace: 1 | 2 | 3
|
titleGap: 1 | 2 | 3
|
||||||
}
|
}
|
||||||
|
|
||||||
comment?: {
|
comment?: {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue