Skip to content

style: restyle osdt-tech theme, publish under hellogcc.org - #6

Merged
lazyparser merged 2 commits into
hellogcc:mainfrom
shiptux:style/unified-redesign
Oct 15, 2026
Merged

lazyparser merged 2 commits into
hellogcc:mainfrom
shiptux:style/unified-redesign

Conversation

@shiptux

@shiptux shiptux commented Oct 14, 2026

Copy link
Copy Markdown
Contributor

概要 / Summary

把 osdt-tech 主题从霓虹深色模板改为与 HelloLLVM / CNRV / 甲辰计划等站点共用的设计语言(浅色为底、跟随系统深色模式、系统字体栈、卡片),并补齐自定义域名发布所需的两处配置。

Restyle the osdt-tech theme with the design language shared by the sibling community sites, and add the two bits of config needed to publish under the custom domain.

改动 / Changes

  • themes/osdt-tech/assets/css/main.css 重写为 token 体系;去掉网格背景与发光效果;无外部字体 / CDN
  • header / footer partial;内联 SVG GitHub 图标;导航高亮当前栏目
  • 首页:hero + 三个指标、最新文章网格、README 时间线;「关于 / 作者 / 资源」这类纯内容栏目按文章版式渲染
  • hugo.toml:baseURL 改为 https://hellogcc.org/;新增 static/CNAME(与已关闭的 Align Hugo output with GitHub Pages custom domain hellogcc.org #5 相同的两处);tagline / heroSubtitle 文案;页脚 friendLinks(不想要可整段删除)

⚠️ 需要维护者操作 / Maintainer action needed

线上 hellogcc.github.io 目前仍是旧的 Jekyll 列表页,而不是仓库里的 Hugo 站点。原因:Pages 的发布源仍是 Deploy from a branch,GitHub 自带的 Jekyll 会从 main 根目录的 index.md 构建并覆盖 hugo.yml 的部署结果(两次 deployment 是同一个 sha,线上 style.css?v=<sha> 就是 Jekyll 构建的痕迹)。请在 Settings → Pages → Build and deployment → Source 切换为 GitHub Actions,合并本 PR 后站点即以 Hugo 输出发布。

另外 hellogcc.org 目前只是 301 跳转到 hellogcc.github.io;若希望直接以 hellogcc.org 访问,需把域名的 DNS 指向 GitHub Pages。

验证 / Verification

  • hugo --gc --minify 用 0.123.7(CI 版本)与 0.148.2 均构建无错误;产物根目录含 CNAME
  • 1280 / 390 宽度、浅色 / 深色截图检查首页、文章页、关于页;改前/改后截图随后作为评论附上

🤖 Generated with Claude Code

- Replace the neon dark template with a light-first palette that
  follows prefers-color-scheme, system font stack, no CDN assets
- Split header/footer into partials, add inline SVG GitHub icon,
  active menu state and optional footer friend links
- Simplify home: hero with metrics, latest posts grid, README timeline
- Content-only sections (about/authors/resources) render as prose
- Set baseURL to https://hellogcc.org/ and ship static/CNAME so the
  Pages artifact keeps the custom domain binding
- Add tagline/heroSubtitle copy and footer friend links params
@lazyparser
lazyparser merged commit 581759f into hellogcc:main Oct 15, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants