Files
wahyd4.github.com/_config.next.yml
Hermes Bot bb86ac0704 Fix preview issues: zh-CN language, disable motion, head.njk CSS injection, searchdb, move scripts to tools/
- language zh-Hans -> zh-CN (NexT has no zh-Hans.yml, fell back to Arabic)
- motion disabled (post content invisible without JS animation)
- custom styles via head.njk inline CSS (stylus import path broken)
- font-size control via body-end.njk
- hexo-generator-searchdb for local search
- scripts/* -> tools/ (hexo loads scripts/ as plugins, errored on .py/.sh)
2026-08-04 18:31:05 +10:00

143 lines
2.9 KiB
YAML

# =========================================================
# NexT 8.25.0 theme config — rebuilt from toozhao.com artifact
# =========================================================
# Scheme
scheme: Muse
# Dark Mode (先保持亮色稳定;暗色由 head.njk 的 @media prefers-color-scheme 支持)
darkmode: false
# Menu
menu:
home: / || fa fa-home
tags: /tags/ || fa fa-tags
categories: /categories/ || fa fa-th
archives: /archives/ || fa fa-archive
about: /about/ || fa fa-user
menu_settings:
icons: true
badges: false
# Sidebar
sidebar:
position: left
display: post
padding: 18
offset: 12
b2t: true
scrollpercent: true
# Avatar
avatar:
url: /images/avatar.gif
rounded: true
rotated: false
# Site state (posts count etc)
site_state: true
# Social Links
social:
GitHub: https://github.com/wahyd4 || fab fa-github
# Creative Commons
creative_commons:
license: by-nc-sa
sidebar: true
post: true
# Code block
codeblock:
theme:
light: default
dark: stackoverflow-dark
copy_button:
enable: true
style: mac
fold:
enable: false
# Motion (关闭——文章内容立即可见,不依赖 JS 动画,避免内容不可见问题)
motion:
enable: false
# Bookmark
bookmark:
enable: true
color: '#222'
save: auto
# Medium zoom for images
mediumzoom: true
# Reading progress bar
reading_progress:
enable: true
color: '#222'
height: 2px
# Back to top
back_to_top:
enable: true
sidebar: true
scrollpercent: true
# TOC
toc:
enable: true
number: false
expand_all: false
max_depth: 6
# Tags on posts
tags: true
# Post navigation (prev/next)
post_navigation:
home: false
# Custom style injection (NexT 8.25: head/bodyEnd 模板注入)
custom_file_path:
head: source/_data/head.njk
bodyEnd: source/_data/body-end.njk
# Footer
footer:
since: 2012
powered: true
# ---------------------------------------------------------
# Font & reading-experience tuning (微信读书 style)
# ---------------------------------------------------------
font:
enable: true
host:
global:
external: false
family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif
size: 1.0
headings:
external: false
family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif
size: 1.1
posts:
external: false
family: Georgia, "Noto Serif SC", "Source Han Serif SC", "Songti SC", SimSun, serif
size: 1.05
codes:
external: false
family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace
size: 0.9
# ---------------------------------------------------------
# Search (local) — enable for post search
# ---------------------------------------------------------
local_search:
enable: true
trigger: auto
top_n_per_article: 5
unescape: false
preload: false