功能:添加 pjax/ajax
This commit is contained in:
1 parent
9d1ed54ad8
commit
703cc58d95
24 files changed
+976
-133
No files matched your search
@@ -40,14 +40,6 @@ const KATEX_CDN = 'https://cdnjs.cloudflare.com/ajax/libs/KaTeX';
|
||||
/** Site webfont family requested from the Google Fonts CN API in `Head.astro`. */
|
||||
export const SANS_FAMILY = 'Noto Sans SC';
|
||||
|
||||
/**
|
||||
* Heading webfont for the site title in the top-left corner. The title contains
|
||||
* a Greek `Σ`, so the face must cover Greek as well as Latin: Manrope is a
|
||||
* variable font (200..800) with a greek subset, and Archivo Black (weight 400)
|
||||
* is requested as a separate heavy fallback.
|
||||
*/
|
||||
export const DISPLAY_FAMILY = 'Manrope';
|
||||
|
||||
const SYSTEM_SANS = [
|
||||
'system-ui',
|
||||
'-apple-system',
|
||||
@@ -74,20 +66,6 @@ const fontStack = (families) =>
|
||||
/** Site stack: the webfont first, then every plausible local fallback. */
|
||||
const SANS_STACK = fontStack([SANS_FAMILY, ...SYSTEM_SANS, ...CJK_SANS, 'sans-serif']);
|
||||
|
||||
/**
|
||||
* Display stack for the site title. Only Latin + Greek are covered by the
|
||||
* webfonts, so the site's CJK fallbacks follow for any Chinese in the title.
|
||||
* `Archivo Black` covers Greek and is a genuine display cut, so it is a real
|
||||
* fallback rather than a placeholder.
|
||||
*/
|
||||
const DISPLAY_STACK = fontStack([
|
||||
DISPLAY_FAMILY,
|
||||
'Archivo Black',
|
||||
...SYSTEM_SANS,
|
||||
...CJK_SANS,
|
||||
'sans-serif',
|
||||
]);
|
||||
|
||||
/**
|
||||
* Math stack. Locally installed TeX faces come first, then the platform UI
|
||||
* faces for Latin/Greek symbols, then CJK faces for any Chinese inside math.
|
||||
@@ -252,8 +230,6 @@ const css = `/*
|
||||
--sl-font-mono: ${SANS_STACK};
|
||||
--sl-font-system-mono: ${SANS_STACK};
|
||||
|
||||
/* Heading face for the site title; see .site-title in custom.css. */
|
||||
--sl-font-display: ${DISPLAY_STACK};
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in new issue
Block a user