Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ src/
- 三类内容统一公开日期和阅读时间,并通过 `tone: light | mid | dark` 配置单篇视觉色调;文档、访谈和动态均可将任意多篇内容设置为 `featured: true`,集合页会将它们组成精选展板,未指定时自动突出一篇内容。
- 精选展板是否自动翻页及翻页间隔统一在 `src/data/site.ts` 的 `featuredCarouselConfig` 中按栏目配置。
- 访谈使用 `affiliation` 记录系所;设置 `anonymous: true` 时隐藏姓名,未提供系所则显示“系所信息保密”。
- 所有 Markdown 内容均支持 KaTeX 数学公式:使用 `$...$` 编写行内公式,使用独占一段的 `$$...$$` 编写块级公式。
- 内容字段由 `src/content.config.ts` 校验。
- 默认语言为简体中文;当前不配置多语言路由。

Expand Down
9 changes: 9 additions & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
// @ts-check
import { unified } from '@astrojs/markdown-remark';
import { defineConfig } from 'astro/config';
import rehypeKatex from 'rehype-katex';
import remarkMath from 'remark-math';

const githubPagesBuild = process.env.GITHUB_PAGES === 'true';
const githubPages = {
Expand All @@ -9,6 +12,12 @@ const githubPages = {

export default defineConfig({
...(githubPagesBuild ? githubPages : {}),
markdown: {
processor: unified({
remarkPlugins: [remarkMath],
rehypePlugins: [rehypeKatex],
}),
},
vite: {
build: {
// Keep Fontsource's CJK unicode-range files separate so browsers only
Expand Down
2 changes: 1 addition & 1 deletion docs/components.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

### `SiteMark.astro`

GeoGenesis 的几何站点标记。它没有 Props,颜色继承父元素,可同时用于浅色与深色背景
GeoGenesis 的最终几何标记,由三段粗圆角模块组成。主体颜色继承父元素以适配浅色、深色和叠加式页头,铜赭色与青绿色模块使用固定品牌色。可独立使用的矢量母版保存在 `public/logo-mark.svg`,浏览器图标保存在 `public/favicon.svg`

### `SiteHeader.astro`

Expand Down
Loading
Loading