mirror of
https://github.com/tiennm99/blog.git
synced 2026-10-11 12:09:02 +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.
168 lines
2.7 KiB
YAML
168 lines
2.7 KiB
YAML
mainSections:
|
|
- post
|
|
featuredImageField: image
|
|
rssFullContent: true
|
|
favicon: /favicon.png
|
|
|
|
# tsuki theme options
|
|
search:
|
|
enable: true
|
|
|
|
home:
|
|
recentPostsCount: 5
|
|
|
|
# Stack params below are ignored by tsuki but kept for now in case of rollback.
|
|
# To clean up: remove sidebar, widgets, article.toc/readingTime/license,
|
|
# comments.{disqusjs,utterances,beaudar,remark42,vssue,waline,twikoo,cactus,gitalk,cusdis},
|
|
# imageProcessing, colorScheme, defaultImage, opengraph.twitter
|
|
|
|
footer:
|
|
since: 2020
|
|
customText: "Made by miti99 with ❤️"
|
|
|
|
dateFormat:
|
|
published: Jan 02, 2006
|
|
lastUpdated: Jan 02, 2006 15:04 MST
|
|
|
|
sidebar:
|
|
emoji: 🧑💻
|
|
subtitle: A developer wants to be magician
|
|
avatar:
|
|
enabled: true
|
|
local: true
|
|
src: img/avatar.png
|
|
|
|
article:
|
|
math: false
|
|
toc: true
|
|
readingTime: true
|
|
license:
|
|
enabled: true
|
|
default: Licensed under CC BY-NC-SA 4.0
|
|
|
|
comments:
|
|
enabled: true
|
|
provider: giscus
|
|
|
|
disqusjs:
|
|
shortname:
|
|
apiUrl:
|
|
apiKey:
|
|
admin:
|
|
adminLabel:
|
|
|
|
utterances:
|
|
repo:
|
|
issueTerm: pathname
|
|
label:
|
|
|
|
beaudar:
|
|
repo:
|
|
issueTerm: pathname
|
|
label:
|
|
theme:
|
|
|
|
remark42:
|
|
host:
|
|
site:
|
|
locale:
|
|
|
|
vssue:
|
|
platform:
|
|
owner:
|
|
repo:
|
|
clientId:
|
|
clientSecret:
|
|
autoCreateIssue: false
|
|
|
|
waline:
|
|
serverURL:
|
|
lang:
|
|
pageview:
|
|
emoji:
|
|
- https://unpkg.com/@waline/emojis@1.0.1/weibo
|
|
requiredMeta:
|
|
- name
|
|
- email
|
|
- url
|
|
locale:
|
|
admin: Admin
|
|
placeholder:
|
|
twikoo:
|
|
envId:
|
|
region:
|
|
path:
|
|
lang:
|
|
|
|
cactus:
|
|
defaultHomeserverUrl: "https://matrix.cactus.chat:8448"
|
|
serverName: "cactus.chat"
|
|
siteName: ""
|
|
|
|
giscus:
|
|
enable: true
|
|
repo: tiennm99/blog
|
|
repoId: R_kgDOILzXrw
|
|
category: Announcements
|
|
categoryId: DIC_kwDOILzXr84CeYAw
|
|
mapping: pathname
|
|
strict: "0"
|
|
reactionsEnabled: "1"
|
|
inputPosition: bottom
|
|
theme: preferred_color_scheme
|
|
lang: vi
|
|
# Legacy Stack keys kept for reference; ignored by tsuki:
|
|
repoID: R_kgDOILzXrw
|
|
categoryID: DIC_kwDOILzXr84CeYAw
|
|
lightTheme: light
|
|
darkTheme: dark
|
|
emitMetadata: 0
|
|
|
|
gitalk:
|
|
owner:
|
|
admin:
|
|
repo:
|
|
clientID:
|
|
clientSecret:
|
|
proxy:
|
|
|
|
cusdis:
|
|
host:
|
|
id:
|
|
|
|
widgets:
|
|
homepage:
|
|
- type: search
|
|
- type: archives
|
|
params:
|
|
limit: 5
|
|
- type: categories
|
|
params:
|
|
limit: 10
|
|
- type: tag-cloud
|
|
params:
|
|
limit: 10
|
|
page:
|
|
- type: toc
|
|
|
|
opengraph:
|
|
twitter:
|
|
site: tienthieusac
|
|
card: summary_large_image
|
|
|
|
defaultImage:
|
|
opengraph:
|
|
enabled: false
|
|
local: false
|
|
src: img/logo.png
|
|
|
|
colorScheme:
|
|
toggle: true
|
|
default: auto
|
|
|
|
imageProcessing:
|
|
cover:
|
|
enabled: true
|
|
content:
|
|
enabled: true
|