mirror of
https://github.com/reonokiy/blog.nokiy.net.git
synced 2025-06-18 04:06:05 +02:00
chore: change i18n example article and update i18n configuration
This commit is contained in:
parent
5584ef28ee
commit
355b044e9f
38 changed files with 1021 additions and 858 deletions
|
@ -6,13 +6,9 @@ import { getPageInfo } from '@/utils/page'
|
|||
const { currentLang, getLocalizedPath } = getPageInfo(Astro.url.pathname)
|
||||
const currentUI = ui[currentLang as keyof typeof ui]
|
||||
|
||||
const { title, subtitle } = themeConfig.site
|
||||
const headerTitle = title || currentUI.title
|
||||
const headerSubtitle = !subtitle
|
||||
? ''
|
||||
: (subtitle === 'Revive the beauty of typography'
|
||||
? currentUI.subtitle
|
||||
: subtitle)
|
||||
const { title, subtitle, i18nTitle } = themeConfig.site
|
||||
const headerTitle = i18nTitle ? currentUI.title : title
|
||||
const headerSubtitle = i18nTitle ? currentUI.subtitle : subtitle
|
||||
|
||||
const { titleSpace } = themeConfig.global
|
||||
const marginBottom = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue