feat: add font family and global styles

This commit is contained in:
radishzzz 2025-01-18 11:09:36 +00:00
parent 8a3e01fb96
commit 0bfb9aab0a
134 changed files with 154 additions and 10 deletions

View file

@ -35,7 +35,7 @@ const { cdn, commentURL = '', imageHostURL = '', customGoogleAnalyticsURL = '',
<!-- Preload -->
<link rel="preconnect" href={cdn} />
<link rel="preload" href={`${cdn}/gh/radishzzz/astro-theme-retypeset@master/src/style/font.css`} as="style" />
<link rel="preload" href={`${cdn}/gh/radishzzz/astro-theme-retypeset@master/src/styles/font.css`} as="style" />
{commentURL && <link rel="dns-prefetch" href={commentURL} />}
{imageHostURL && <link rel="dns-prefetch" href={imageHostURL} />}
{customGoogleAnalyticsURL && <link rel="dns-prefetch" href={customGoogleAnalyticsURL} />}
@ -53,7 +53,7 @@ const { cdn, commentURL = '', imageHostURL = '', customGoogleAnalyticsURL = '',
{[locale, ...moreLocale].map(lang => (
<link
rel="alternate"
href={lang === locale ? '/' : `/${lang}/`}
href={`${url}${lang === locale ? '' : lang}`}
hreflang={lang === 'zh-tw' ? 'zh-TW' : lang}
/>
))}