mirror of
https://github.com/tiennm99/blog.git
synced 2026-10-13 22:15:29 +00:00
- Replace the hugo-theme-stack submodule with the tsuki theme vendored in themes/tsuki; drop .gitmodules - config/_default/hugo.yml: theme: tsuki - config/_default/permalinks.yml: keep /p/:slug/ for posts to preserve existing URLs (matches Stack default) - config/_default/markup.yml: add parser.autoHeadingIDType: github-ascii for ASCII heading slugs - config/_default/params.yml: add tsuki-required keys (search.enable, home.recentPostsCount); restructure comments.giscus to tsuki schema (repoId/categoryId lowercase, theme, lang, etc.). Stack-only params kept for now in case of rollback (silently ignored by tsuki). - Move content/page/archives -> content/archives (tsuki uses kind=section) - Move content/page/search -> content/search (drop json output; Pagefind index built in CI replaces Fuse.js search) - Add data/profile.yaml driving the homepage hero - Copy assets/img/avatar.png -> static/img/ for tsuki's relURL resolution Verified: 717 pages build clean, 280 aliases preserve old URLs. Posts at /p/<slug>/, comments + TOC + archives + search all render.
32 lines
494 B
YAML
32 lines
494 B
YAML
goldmark:
|
|
extensions:
|
|
passthrough:
|
|
enable: true
|
|
delimiters:
|
|
block:
|
|
- - \[
|
|
- \]
|
|
- - $$
|
|
- $$
|
|
inline:
|
|
- - \(
|
|
- \)
|
|
renderer:
|
|
unsafe: true
|
|
parser:
|
|
autoHeadingIDType: github-ascii
|
|
|
|
tableOfContents:
|
|
endLevel: 4
|
|
ordered: true
|
|
startLevel: 2
|
|
|
|
highlight:
|
|
noClasses: false
|
|
codeFences: true
|
|
guessSyntax: true
|
|
lineNoStart: 1
|
|
lineNos: true
|
|
lineNumbersInTable: true
|
|
tabWidth: 2
|