Repository navigation
Conversation
- Rewrite main.css around CSS custom properties (system font stack, light base with prefers-color-scheme dark, cards, buttons, hero) - Split header/footer into partials, add inline SVG icons and a GitHub link instead of any external icon font or CDN - Add a dedicated home template: hero, section entry cards and a cross-section "latest" grid - Tidy list/single templates (date meta, section tag, back link)
- Enable hasCJKLanguage so summaryLength counts characters; the archive page previously leaked its whole body into the home card - Give the archive page a date and description (was 0001-01-01) - Add a titled _index for the announcements section - Add repoURL and optional footer friend links to params
Member
|
Thanks. Let's try it! |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要 / Summary
重做站点样式与首页布局,对齐 OSDT / RISC-V 中国社区几个站点共用的设计语言:浅色为底、跟随系统深色模式、系统字体栈、卡片与圆角按钮。Hugo 与内容不变。
Restyle the site and home page with the design language shared by the sibling OSDT / RISC-V China community sites: light base that follows the system dark mode, system font stack, cards and pill buttons. Hugo and content are unchanged.
改动 / Changes
assets/css/main.css全部重写为 CSS 自定义属性 token(无外部字体 / CDN)layouts/index.html:hero、栏目入口卡片、跨栏目「最新动态」list.html/single.html:日期、栏目标签、返回链接hugo.toml:hasCJKLanguage = true(之前summaryLength按英文单词数计,整段中文被当作一个词,导致「历史存档」把整页正文泄漏进首页卡片);repoURL;页脚friendLinks(不想要可整段删除)content/archives.md补date与description(之前显示 0001-01-01);content/announcements/_index.md给公告栏目一个中文标题验证 / Verification
hugo --gc --minify本地构建无错误(0.148.2,与 CI 一致)🤖 Generated with Claude Code