Post Page Configuration
This page explains the post page configuration: hero image, meta info under the title (date/word count/reading time/views), TOC, comments, reward, copyright, math and diagrams. Everything lives in the post section of the theme config.
The authoritative source of the theme config is
userConfig/_config.tmp.yml(it overwrites the theme config at CI time).How to read: every section follows “How to enable → Common options → All tunable keys → Boundaries & conflicts”. Look at the effect first, then the corresponding config that produces it — copy and use.
Display & Layout
1. Post Page Hero Image
Purpose: the banner at the top of post pages (distinct from the homepage hero; it can be set independently).
Learning path: How to enable → Common options → All tunable keys → Boundaries & conflicts
1.1 How to enable
Effect: open any post and a full-width hero image appears at the top, taking 70% of the viewport height, with a 30% black mask on top to raise the contrast of the white title.
Corresponding config (theme config, post section):
post:
banner_img: /img/default.png # post page hero image
banner_img_height: 70 # hero image height (percentage of screen, 0-100)
banner_mask_alpha: 0.3 # black mask opacity (0-1)1.2 Common options
① Change the hero image for one post
Effect: only that post’s top image is replaced; other posts keep the global hero.
Corresponding config (post front-matter):
banner_img: /medias_webp/banner/1.webp② Adjust the hero height
Effect: the larger the value, the taller the hero and the further the title moves down; 70 takes about seven tenths of the viewport, 40 leaves only a strip.
Corresponding config:
post:
banner_img_height: 40③ Adjust the mask darkness
Effect: 0 applies no darkening (white text may be unreadable on a light image), 0.5 darkens noticeably, 1 is fully black.
Corresponding config:
post:
banner_mask_alpha: 0.5④ Auto-pick an image when front-matter has none
Effect: when a post has no img, one image is picked deterministically from the featureImages array by a hash of the title — the same title always gets the same image.
Corresponding config (theme config, top-level featureImages):
featureImages:
- /medias_webp/featureimages/0.webp
- /medias_webp/featureimages/1.webp1.3 All tunable keys
| Key | Type | Default | Allowed values / range | What it does |
|---|---|---|---|---|
post.banner_img | string | — | image path or full URL | global post page hero image |
post.banner_img_height | number | — | 0–100 (viewport percentage) | hero image height |
post.banner_mask_alpha | number | — | 0–1 | black mask opacity |
front-matter banner_img | string | inherits global | image path | per-post hero override |
front-matter img | string | — | image path | explicitly set the hero (highest priority) |
featureImages | array | — | array of image paths | fallback pool used when img is absent |
background.image.random | bool | — | true / false | when random background is on, the post banner is not shown |
1.4 Boundaries & conflicts
Hero image source priority (_partial/post/post-cover rendering logic):
- front-matter
img(e.g.img: /medias_webp/xxx.webp) — explicit - without
img, pick one fromtheme.featureImagesby a hash of the title (/medias_webp/featureimages/0-44.webp; the same title always gets the same image) - when random background is on (
theme.background.image.random), the post banner is hidden
Note:
featureImagesonly sources frommedias_webp/featureimages/(webp, numbered 0-44, with adark/subdirectory); the legacymedias/featureimages/(jpg) is removed — do not reference.jpgpaths.
1.5 Summary
- Minimum: write
banner_imgalone and the hero appears - Make the title stand out: raise
banner_mask_alpha, or lowerbanner_img_height - Specialize one post: write
img/banner_imgin its front-matter, leave the global alone - Change has no effect: the hero path is an asset change — a clean build is required
2. Meta (meta)
Purpose: the info row under the post title: date, word count, reading time, views — each independently toggleable.
Learning path: How to enable → Common options → All tunable keys → Boundaries & conflicts
2.1 How to enable
Effect: a row of small grey text appears right under the post title, e.g. “2026-08-07 · 2,345 words · 8 min · 123 views”. With only date and word count enabled, the row shrinks to “date · word count”.
Corresponding config (theme config, post.meta section):
post:
meta:
date:
enable: true
format: "LL a"
wordcount:
enable: true2.2 Common options
① Date and format
Effect: shows the post date. "LL a" outputs a localized form such as “August 7, 2026 Friday”.
Corresponding config:
post:
meta:
date:
enable: true
format: "LL a"② Word count
Effect: “N words” appears under the title; CJK text is counted per character.
Corresponding config:
post:
meta:
wordcount:
enable: true③ Reading time
Effect: an “N min” estimate appears. A larger wpm estimates shorter; awl is the average word length factor — keep it at 1 for CJK.
Corresponding config:
post:
meta:
min2read:
enable: true
awl: 1 # CJK: 1 character = 1 character
wpm: 300 # 250-350 recommended for CJK technical content④ Views
Effect: “N views” appears. Where the number comes from is decided by source — switching data sources changes only this one value.
Corresponding config:
post:
meta:
views:
enable: true
source: "umami" # busuanzi | leancloud | umami | waline⑤ Author
Effect: the author name appears under the title. Off by default; when on it prefers front-matter author, falling back to the site author.
Corresponding config:
post:
meta:
author:
enable: true2.3 All tunable keys
| Key | Type | Default | Allowed values / range | What it does |
|---|---|---|---|---|
post.meta.author.enable | bool | false | true / false | show the author |
post.meta.date.enable | bool | true | true / false | show the date |
post.meta.date.format | string | "LL a" | ISO-8601 / dayjs format string | date format |
post.meta.wordcount.enable | bool | true | true / false | word count |
post.meta.min2read.enable | bool | true | true / false | reading time |
post.meta.min2read.awl | number | 1 | positive number | average characters per word (equivalence factor) |
post.meta.min2read.wpm | number | 300 | positive number | words read per minute |
post.meta.views.enable | bool | true | true / false | views |
post.meta.views.source | string | "umami" | busuanzi / leancloud / umami / waline | view counter data source |
2.4 Boundaries & conflicts
post.meta.views.sourcedecides where views come from — this blog uses umami (self-hosted analytics); you can also switch to busuanzi (zero config) or Waline comment views.- Choosing
leancloudalso requires theleancloud_visitorsconfig from §21; choosingwalinerequireswaline.pageview: true. post.metaand §11postInfoare two independent mechanisms — enabling both shows the info twice on the page, so keep only one as needed.
2.5 Summary
- Minimum:
date.enable+wordcount.enable - Fewer requests: use
umamifor views, don’t enableleancloud_visitorsat the same time - Reading time is off: tune
wpm(250–350 for CJK) - Don’t duplicate
postInfo: first check whether the info bar already shows it
3. Updated Notice (updated)
Purpose: show “last updated on X” at the top of the post; defaults to the md file modification time and can be overridden with front-matter
updated.Learning path: How to enable → Common options → All tunable keys → Boundaries & conflicts
3.1 How to enable
Effect: a notice bar “Last updated on August 7, 2026 Friday” appears at the start of the post body. Off by default; set enable: true and it appears.
Corresponding config (theme config):
post:
updated:
enable: true
date_format: "LL a"3.2 Common options
① Relative time
Effect: with relative: true the bar shows “3 days ago” instead of an exact date — friendlier for old posts.
Corresponding config:
post:
updated:
relative: true② Notice style
Effect: the bar switches to the matching theme color (info blue, success green, warning yellow, danger red, etc.).
Corresponding config:
post:
updated:
note_class: warning③ Set the update time manually
Effect: that post shows the front-matter date instead of the file modification time — useful when the content is unchanged but you want to mark a revision date.
Corresponding config (post front-matter):
updated: 2026-09-01 10:00:003.3 All tunable keys
| Key | Type | Default | Allowed values / range | What it does |
|---|---|---|---|---|
post.updated.enable | bool | false | true / false | show the update notice |
post.updated.date_format | string | "LL a" | ISO-8601 / dayjs format string | date format |
post.updated.relative | bool | false | true / false | show relative time (“3 days ago”) |
post.updated.note_class | string | info | default / primary / info / success / warning / danger / light | notice style |
3.4 Boundaries & conflicts
- Defaults to the md file modification time; if front-matter
updatedis present, that wins. note_classrelies on the theme’s note styles — an unknown value falls back to the default style (other values unverified).
3.5 Summary
- Minimum: enable
enableonly - Old posts friendly:
relative: true - Make it stand out:
note_class: warning - Per post: front-matter
updated
4. TOC
Purpose: chapter navigation in the post sidebar, current chapter highlighted while scrolling, collapsible.
Learning path: How to enable → Common options → All tunable keys → Boundaries & conflicts
4.1 How to enable
Effect: a table of contents tree appears in the post sidebar; scrolling the body highlights the matching entry, and clicking an entry jumps to that chapter.
Corresponding config (theme config, top-level toc section):
toc:
enable: true4.2 Common options
① Heading levels included
Effect: by default h2–h6 all go into the TOC; set "h2,h3" and only two levels show — a shorter TOC.
Corresponding config:
toc:
headingSelector: "h2,h3"② Collapse depth
Effect: 0 collapses everything, showing only top-level entries; a value greater than 0 expands entries that have children by default.
Corresponding config:
toc:
collapseDepth: 2③ Disable for one post
Effect: that post shows no TOC; other posts are unaffected.
Corresponding config (post front-matter):
toc: false4.3 All tunable keys
| Key | Type | Default | Allowed values / range | What it does |
|---|---|---|---|---|
toc.enable | bool | true | true / false | global TOC switch |
toc.headingSelector | string | "h2,h3,h4,h5,h6" | CSS selector string | heading levels included |
toc.collapseDepth | number | 0 | 0 or a positive integer | collapse depth |
front-matter toc | bool | inherits global | true / false | per-post switch |
4.4 Boundaries & conflicts
collapseDepthof0means fully collapsed;>0expands entries that have children by default.- Headings must be produced by Markdown
##/###for the TOC to pick them up; hand-written HTML headings need the matching class/selector. toc: falseon a single post only hides the TOC — it does not affect heading rendering in the body.
4.5 Summary
- Minimum:
toc.enable: true - TOC too long: narrow
headingSelector - Want it expanded:
collapseDepth: 2 - No TOC on one post: front-matter
toc: false
Interaction & Copyright
5. Comments (comments)
Purpose: site-wide comment system switch and engine selection.
Learning path: How to enable → Common options → All tunable keys → Boundaries & conflicts
5.1 How to enable
Effect: a comment area appears at the end of the post body (Waline’s input box + comment list); with no engine selected or no server URL filled in, the area is empty or errors out.
Corresponding config (theme config, post.comments section):
post:
comments:
enable: true
type: waline # engines: utterances | disqus | gitalk | gitment | valine | waline | changyan | livere | remark42 | twikoo | cusdis | giscus | discussYou also need the required params of the chosen engine (Waline: see §5.2.1).
5.2 Common options
① Switch the comment engine
Effect: the comment area switches to another service (e.g. giscus backed by GitHub Discussions) — appearance and login method change with it.
Corresponding config:
post:
comments:
type: giscus② Page-level switch
Effect: that page shows no comment area (same for standalone pages, message pages and friends pages).
Corresponding config (page front-matter):
comments: false③ Waline server URL
Effect: comments can actually be read and written. Without serverURL, Waline fails to initialize and the comment area is blank.
Corresponding config:
waline:
enable: true
serverURL: 'https://waline.17lai.site'④ Avatar and UI language
Effect: the commenter avatar style and UI text language change (avatar: 'hide' shows no avatar).
Corresponding config:
waline:
avatar: 'mp'
lang: zh-CN⑤ Dark mode adaptation
Effect: switching to dark mode dims Waline automatically; a wrong selector leaves the comment area light.
Corresponding config:
waline:
dark: 'html[data-user-color-scheme="dark"]'⑥ View / comment count stats
Effect: the read count and comment count appear at the top of the comment area or in the post info. Requires post.meta.views.source: waline and postInfo.commentCount to work together.
Corresponding config:
waline:
pageview: true
comment: true⑦ Custom emoji reactions
Effect: a row of emoji buttons appears at the bottom of the post for readers to react with.
Corresponding config:
waline:
reaction: |
[
'https://testingcf.jsdelivr.net/npm/@waline/emojis/tieba/tieba_agree.png'
]⑧ Image upload
Effect: with false the comment box has no upload button; when enabled, images are embedded as Base64.
Corresponding config:
waline:
imageUploader: false5.2.1 Comment engine configs
Waline (this blog’s primary, detailed):
waline:
enable: true
serverURL: 'https://waline.17lai.site' # Waline service address (self-hosted, required)
avatar: 'mp' # avatar style: ''/mp/identicon/monsterid/wavatar/retro/hide
lang: zh-CN # UI language
dark: 'html[data-user-color-scheme="dark"]' # dark mode selector
login: enable # login mode: enable | force
wordLimit: 1000 # comment word limit (0 = unlimited)
pageSize: 10 # comments per page
pageview: false # post page views v2 (with post.meta.views.source: waline)
comment: true # comment count v2 (with postInfo.commentCount)
reaction: | # post reactions (custom emoji URL array, matching _config.tmp.yml)
[
'https://testingcf.jsdelivr.net/npm/@waline/emojis/tieba/tieba_agree.png',
'https://testingcf.jsdelivr.net/npm/@waline/emojis/tieba/tieba_look_down.png',
'https://testingcf.jsdelivr.net/npm/@waline/emojis/tieba/tieba_sunglasses.png',
'https://testingcf.jsdelivr.net/npm/@waline/emojis/tieba/tieba_pick_nose.png',
'https://testingcf.jsdelivr.net/npm/@waline/emojis/tieba/tieba_awkward.png',
'https://testingcf.jsdelivr.net/npm/@waline/emojis/tieba/tieba_sleep.png'
]
search: false # emoji search (default provided by giphy)
imageUploader: false # image upload (false disables; default embeds as Base64)
meta: "['nick', 'mail', 'link']" # fields guests can fill
requiredMeta: "['nick', 'mail']" # required fields
recaptchaV3Key: '' # reCAPTCHA v3 key (anti-spam, optional)
highlight:
enable: false # disable Waline's built-in highlighter
custom_highlighter: | # custom highlight function (waline.ejs reads highlight.custom_highlighter)
(code, lang) => { /* highlight with Prism */ }These are the keys actually read by
waline.ejs(serverURL/avatar/lang/dark/login/wordLimit/pageSize/pageview/comment/reaction/search/imageUploader/meta/requiredMeta/recaptchaV3Key/highlight.custom_highlighter). Valine-specific keys (enableQQ/recordIP/requiredFields/guest_info/count/visitor) are not read by waline.ejs — configuring them has no effect.
Other engines (condensed config):
| Engine | Config key | Required params | Notes |
|---|---|---|---|
| Valine | valine | appId/appKey/serverURLs (Valine-specific keys enableQQ/recordIP/requiredFields/guest_info/count/visitor) | legacy comments (Waline’s predecessor), params same as Waline, needs LeanCloud credentials; prefer Waline |
| Gitalk | gitalk | owner/repo/oauth.clientId/oauth.clientSecret/admin | GitHub Issues-based; OAuth app has excessive permissions, not recommended |
| Gitment | gitment | owner/repo/oauth.clientId/oauth.clientSecret | GitHub Issues-based; same security issue as Gitalk (see §13) |
| Disqus | disqus | shortname | mainstream foreign comment service, unstable in China |
| Livere | livere | uid | Korean service, usable in China |
| Changyan | changyan | appId/conf | Sohu service, requires ICP filing |
| Twikoo | twikoo | envId (optional region/path) | Tencent CloudBase deployment, see twikoo.js.org |
| Cusdis | cusdis | host/app_id/lang | third-party or self-hosted, see cusdis.com |
| Giscus | giscus | repo/repo-id/category/category-id (optional mapping/theme-light/theme-dark/lang) | GitHub Discussions-based, see giscus.app |
| Remark42 | remark42 | host/site_id (optional max_shown_comments/locale/components) | requires self-hosted server, see remark42.com |
| Discuss | discuss | serverURLs/path | self-hosted, multi-platform multi-database, see discuss.js.org |
| Utterances | utterances | repo/label (optional issue_term/theme/theme_dark) | lightweight GitHub Issues-based comments, needs a GitHub repo, see utteranc.es |
Switching engines in three steps: ① set
post.comments.typeto the target engine; ② fill in the required params from the table above; ③hexo clean && hexo generateto rebuild. GitHub-based engines (Gitalk/Gitment) carry OAuth permission risks — prefer utterances/giscus-style single-repo solutions.
5.3 All tunable keys
| Key | Type | Default | Allowed values / range | What it does |
|---|---|---|---|---|
post.comments.enable | bool | true | true / false | site-wide comment switch |
post.comments.type | string | waline | see the 13 engines above | comment engine |
waline.enable | bool | true | true / false | Waline switch |
waline.serverURL | string | — | service URL | Waline server (required) |
waline.avatar | string | 'mp' | ''/mp/identicon/monsterid/wavatar/retro/hide | avatar style |
waline.lang | string | zh-CN | language code | UI language |
waline.dark | string | — | CSS selector | dark mode adaptation |
waline.login | string | enable | enable / force | login mode |
waline.wordLimit | number | 1000 | 0 (unlimited) / positive integer | comment word limit |
waline.pageSize | number | 10 | positive integer | comments per page |
waline.pageview | bool | false | true / false | view stats v2 |
waline.comment | bool | true | true / false | comment count stats v2 |
waline.reaction | string | — | emoji URL array | emoji reactions |
waline.search | bool | false | true / false | emoji search |
waline.imageUploader | bool | false | true / false | image upload |
waline.meta | string | "['nick', 'mail', 'link']" | field array string | fillable fields |
waline.requiredMeta | string | "['nick', 'mail']" | field array string | required fields |
waline.recaptchaV3Key | string | '' | reCAPTCHA v3 key | anti-spam |
waline.highlight.enable | bool | false | true / false | Waline built-in highlighter |
waline.highlight.custom_highlighter | string | — | JS function string | custom highlighter |
front-matter comments | bool | inherits global | true / false | page-level switch |
5.4 Boundaries & conflicts
- Whichever engine
typepoints to, you must also configure that plugin’s required params (e.g. this blog’swaline.serverURL). Page-level control uses front-mattercomments: true/false(same for standalone pages, message pages and friends pages). - Valine-specific keys have no effect under Waline (
waline.ejsdoes not read them). - §16
minWalineCommentCountis off by default because it duplicates the comment-count request made bywaline.comment. - Gitalk/Gitment OAuth permissions are too broad — utterances/giscus are preferred.
5.5 Summary
- Minimum:
comments.enable+type: waline+waline.serverURL - Want GitHub comments:
giscus, fill in the 4 ids - Dark mode looks wrong: check the
waline.darkselector - No comments on one page: front-matter
comments: false
6. Reward (reward)
Purpose: the tipping card at the end of posts, showing WeChat/Alipay payment QR codes.
Learning path: How to enable → Common options → All tunable keys → Boundaries & conflicts
6.1 How to enable
Effect: after the post body a reward card appears: a line of title, with two payment QR codes side by side (WeChat, Alipay) that can be clicked to enlarge.
Corresponding config (theme config):
post:
reward:
enable: true
title: 码字辛苦,打赏作者!
wechat: /medias_webp/reward/wechat.webp
alipay: /medias_webp/reward/alipay.webp6.2 Common options
① Change the copy
Effect: the card title text changes; the QR codes stay the same.
Corresponding config:
post:
reward:
title: 请我喝杯咖啡② Change the QR codes
Effect: the QR image of the corresponding channel is replaced with yours; a full URL for a network image is supported.
Corresponding config:
post:
reward:
wechat: https://example.com/wechat.png
alipay: /medias_webp/reward/alipay.webp③ Turn the reward card off
Effect: the reward card no longer appears at the end of posts.
Corresponding config:
post:
reward:
enable: false6.3 All tunable keys
| Key | Type | Default | Allowed values / range | What it does |
|---|---|---|---|---|
post.reward.enable | bool | true | true / false | show the reward card |
post.reward.title | string | — | any string | card title |
post.reward.wechat | string | — | local path or URL | WeChat payment QR |
post.reward.alipay | string | — | local path or URL | Alipay payment QR |
6.4 Boundaries & conflicts
- Just replace the QR images with your own; network images are supported (use a full URL).
- If both channel images are missing, empty slots appear on the card — keep at least one.
6.5 Summary
- Minimum:
enable+ two images - Use your own codes: change only
wechat/alipay - Don’t want to show codes:
enable: false
7. Copyright (copyright)
Purpose: copyright card at the bottom of posts: author, original link and reprint license.
Learning path: How to enable → Common options → All tunable keys → Boundaries & conflicts
7.1 How to enable
Effect: a copyright card appears at the bottom of posts, listing the author, the original link and a license name such as “Attribution-NonCommercial-ShareAlike”.
Corresponding config (theme config):
post:
copyright:
enable: true
license: 'cc_by_nc_sa'7.2 Common options
① Change the site-wide default license
Effect: the copyright card of every post shows the new license name and link.
Corresponding config:
post:
copyright:
license: 'cc_by_nc'② Override the license for one post
Effect: only that post shows cc_by_nc; the rest keep the global license.
Corresponding config (post front-matter):
reprintPolicy: cc_by_nc③ Turn the copyright card off
Effect: the copyright card disappears from the end of posts.
Corresponding config:
post:
copyright:
enable: false7.3 All tunable keys
| Key | Type | Default | Allowed values / range | What it does |
|---|---|---|---|---|
post.copyright.enable | bool | true | true / false | show the copyright card |
post.copyright.license | string | 'cc_by_nc_sa' | cc_by / cc_by_nd / cc_by_sa / cc_by_nc / cc_by_nc_nd / cc_by_nc_sa | site-wide default license |
front-matter reprintPolicy | string | inherits global | the same 6 values | per-post license override |
Available rules: cc_by, cc_by_nd, cc_by_sa, cc_by_nc, cc_by_nc_nd, cc_by_nc_sa (meanings at Creative Commons).
7.4 Boundaries & conflicts
- front-matter
reprintPolicytakes priority over the globallicense. - A misspelled license value makes the card show the raw string or fall back to the default (other values unverified).
7.5 Summary
- Minimum:
enable: true - Unify the license: change
license - One post exception: front-matter
reprintPolicy
Content Rendering
8. Math (math)
Purpose: render
$...$/$$...$$formulas in posts.Learning path: How to enable → Common options → All tunable keys → Boundaries & conflicts
8.1 How to enable
Effect: $E=mc^2$ in the body is rendered as a typeset formula, and $$...$$ becomes its own centered block.
Corresponding config (theme config):
post:
math:
enable: true
specific: true8.2 Common options
① Load on demand
Effect: with specific: true, only posts that declare mathjax: true in front-matter load the formula engine — other posts skip that JS.
Corresponding config:
post:
math:
specific: true② Enable for one post
Effect: that post’s formulas render normally; posts without that line do not load the engine even if global enable: true.
Corresponding config (post front-matter):
mathjax: true③ Switch the rendering engine
Effect: formula typesetting details switch to KaTeX style (faster to load, different fonts).
Corresponding config:
post:
math:
engine: katex8.3 All tunable keys
| Key | Type | Default | Allowed values / range | What it does |
|---|---|---|---|---|
post.math.enable | bool | false | true / false | master math switch |
post.math.specific | bool | true | true / false | enable only for posts that declare it |
post.math.engine | string | mathjax | mathjax / katex | rendering engine |
front-matter mathjax | bool | — | true | per-post enable marker |
8.4 Boundaries & conflicts
specific: trueis this blog’s recommended usage — posts without formulas don’t load the engine; when needed, addmathjax: truein front-matter (markdown-plugins.ejscheckspage.mathjax).- Custom pages (non-post) using formulas also need
mathjax: truein front-matter. - After changing
engineyou must do a clean build; old artifacts do not switch automatically.
8.5 Summary
- Minimum:
enable: true+specific: true - Formulas on every post: front-matter
mathjax: true - MathJax feels slow: switch to
engine: katex
9. Diagrams (mermaid)
Purpose: render mermaid flowcharts/sequence diagrams/gantt charts in posts (
```mermaidcode blocks or the tag plugin).Learning path: How to enable → Common options → All tunable keys → Boundaries & conflicts
9.1 How to enable
Effect: a ```mermaid code block is rendered as a diagram (rectangular nodes + arrows) instead of showing source text.
Corresponding config (theme config):
post:
mermaid:
enable: true
specific: trueWhere the options come from:
post.mermaid.optionsis passed verbatim tomermaid.initialize()(i.e. the mermaidAPI config), sotheme/startOnLoad/securityLevel/flowchartfollow the official Mermaid mermaidAPI docs.
9.2 Common options
① Load on demand
Effect: only posts that write mermaid: true in front-matter load the mermaid library; other posts don’t pay that weight.
Corresponding config:
post:
mermaid:
specific: true② Enable for one post
Effect: that post’s mermaid blocks render as diagrams.
Corresponding config (post front-matter):
mermaid: true③ Stop flowcharts from filling the container
Effect: the diagram renders at its own width, left-aligned; set it to true to stretch horizontally to the container.
Corresponding config:
post:
mermaid:
options:
flowchart:
useMaxWidth: false④ Gantt chart sizing
Effect: gantt row height and gap change — barHeight: 20 / barGap: 4 is more compact.
Corresponding config:
post:
mermaid:
options:
gantt:
useMaxWidth: true
barHeight: 20
barGap: 49.3 All tunable keys
| Key | Type | Default | Allowed values / range | What it does |
|---|---|---|---|---|
post.mermaid.enable | bool | true | true / false | master mermaid switch |
post.mermaid.specific | bool | true | true / false | enable only for posts that declare it |
post.mermaid.options.theme | string | 'default' | mermaid theme name (default/dark/forest/neutral etc.) | default theme (overridden by light/dark mode) |
post.mermaid.options.startOnLoad | bool | true | true / false | render on page load |
post.mermaid.options.securityLevel | string | 'loose' | strict / loose / antiscript | security level |
post.mermaid.options.flowchart.useMaxWidth | bool | false | true / false | whether flowcharts fill the container |
post.mermaid.options.gantt.useMaxWidth | bool | true | true / false | whether gantt charts fill the container |
post.mermaid.options.gantt.barHeight | number | 20 | positive integer | gantt row height |
post.mermaid.options.gantt.barGap | number | 4 | positive integer | gantt row gap |
front-matter mermaid | bool | — | true | per-post enable marker |
9.4 Boundaries & conflicts
- The mermaid library is slow to load; with
specific: true, writemermaid: truein the post front-matter to enable it (the same on-demand pattern as math). themeis dynamically overridden by light/dark mode but serves as the default.securityLevel: 'loose'allows HTML tags — use it only when you trust the content source.
9.5 Summary
- Minimum:
enable: true+specific: true - Diagrams on every post: front-matter
mermaid: true - Diagram too wide:
flowchart.useMaxWidth: false - Unreadable in dark mode: let light/dark mode override it, don’t hardcode
theme
10. Other Post Page Features
Purpose: prev/next navigation, outdated notice, category bar, browser push, sidebar ads.
Learning path: How to enable → Common options → All tunable keys → Boundaries & conflicts
10.1 How to enable
Effect: prev/next cards appear at the bottom of posts; a list of posts in the current category appears in the sidebar; a notice bar appears at the top of posts that meet the age thresholds.
Corresponding config (theme config):
post:
prev_next:
enable: true
category_bar:
enable: true10.2 Common options
① Prev/next navigation
Effect: two cards (“Previous / Next”) appear at the end of the post, picking adjacent posts by publish time.
Corresponding config:
post:
prev_next:
enable: true② Outdated content notice
Effect: posts older than warning_day days show a yellow notice, older than error_day days show a red one. Off by default.
Corresponding config:
post:
outdate:
enable: true
warning_day: 365
error_day: 3650③ Sidebar category bar
Effect: the sidebar lists other posts in the current post’s category. With specific: true, only posts that write category_bar: true in front-matter show it.
Corresponding config:
post:
category_bar:
enable: true
specific: true
post_order_by: '-date'
post_limit: 0④ Browser push subscription
Effect: a webpushr subscribe button appears at the bottom of the post detail page; after the reader allow it, new posts trigger browser notifications.
Corresponding config:
post:
webpush:
enable: true⑤ Sidebar ad cards
Effect: ad cards appear in the sidebar (entries with enable: false are not shown).
Corresponding config:
post:
advertisements:
- id: "ad-1"
text: "广告文案"
enable: true10.3 All tunable keys
| Key | Type | Default | Allowed values / range | What it does |
|---|---|---|---|---|
post.prev_next.enable | bool | true | true / false | prev/next navigation cards |
post.outdate.enable | bool | false | true / false | outdated content notice |
post.outdate.warning_day | number | 365 | positive integer (days) | yellow notice threshold |
post.outdate.error_day | number | 3650 | positive integer (days) | red notice threshold |
post.category_bar.enable | bool | true | true / false | sidebar category bar |
post.category_bar.specific | bool | true | true / false | show only for posts that declare it |
post.category_bar.post_order_by | string | title (theme default) | sort field, e.g. '-date' | post sorting |
post.category_bar.post_limit | number | 0 | 0 (unlimited) / positive integer | max items shown |
post.webpush.enable | bool | true | true / false | push subscribe button |
post.advertisements[].id | string | — | any string | ad identifier |
post.advertisements[].text | string | — | any string | ad copy |
post.advertisements[].enable | bool | true | true / false | per-entry switch |
10.4 Boundaries & conflicts
- With
post.webpush.enable: true, the post detail page bottom (_partial/common/webpush) shows a webpushr subscribe button; once a reader allows it, they receive browser push notifications when new posts are published. You must first register the site at app.webpushr.com and inject the subscription script (thewebpushrsite ID is configured in the theme head template). - With
category_bar.specific: true, front-matter must containcategory_bar: true, otherwise the bar does not appear. - Valid
post_order_byvalues match Hexo sort fields (-date,date,title, etc.); other values are unverified.
10.5 Summary
- Minimum:
prev_next.enable: true - Remind on old posts: enable
outdate, tune the two thresholds to how fast the content ages - Sidebar too crowded: turn off
category_baroradvertisementsfirst - Push needs ops:
webpushdepends on the webpushr site script
Info Display
11. Post Info (postInfo)
Purpose: independent switches for the post info bar — author, date, word count, total count, reading time, reading mode, read count, comment count. This is a separate mechanism from §2
post.meta;postInfocontrols a different info display.Learning path: How to enable → Common options → All tunable keys → Boundaries & conflicts
11.1 How to enable
Effect: the post info bar shows several metadata items (author, date, update date, word count, site total word count, reading time, reading-mode button, read count, comment count).
Corresponding config (theme config):
postInfo:
author: true
date: true
update: true
wordCount: true
totalCount: true
min2read: true
readMode: true
readCount: true
commentCount: true11.2 Common options
① Reading mode button
Effect: a “reading mode” entry appears in the info bar; clicking it hides the sidebar and distractions, leaving only the body.
Corresponding config:
postInfo:
readMode: true② Comment count
Effect: the info bar shows the comment count for that post (currently only Waline is supported).
Corresponding config:
postInfo:
commentCount: true③ Site total word count
Effect: shows the result of totalcount(site) (posts + wiki pages, deduplicated, encrypted posts counted by plaintext).
Corresponding config:
postInfo:
totalCount: true④ Keep only the essentials
Effect: the info bar keeps only author, date and word count — a cleaner UI.
Corresponding config:
postInfo:
author: true
date: true
wordCount: true
update: false
totalCount: false
min2read: false
readMode: false
readCount: false
commentCount: false11.3 All tunable keys
| Key | Type | Default | Allowed values / range | What it does |
|---|---|---|---|---|
postInfo.author | bool | true | true / false | author |
postInfo.date | bool | true | true / false | publish date |
postInfo.update | bool | true | true / false | update date |
postInfo.wordCount | bool | true | true / false | post word count |
postInfo.totalCount | bool | true | true / false | site total word count |
postInfo.min2read | bool | true | true / false | reading time |
postInfo.readMode | bool | true | true / false | reading mode |
postInfo.readCount | bool | true | true / false | read count |
postInfo.commentCount | bool | true | true / false | comment count (Waline) |
totalCount(totalcount(site)) covers posts + wiki pages: deduplicated across language versions (same content counted once) and encrypted posts counted by plaintext.
11.4 Boundaries & conflicts
- Word count and reading time are provided by the theme’s built-in helpers (
scripts/helpers/wordcount.js) — no extra plugin is required. - The
wordcount/min2read/totalcounthelpers are theme-native;totalcountrenders the footer site-wide total (including wiki pages and the plaintext count of encrypted posts). - Enabling it together with §2
post.metashows the info twice; keep only one.
11.5 Summary
- Minimum:
author+date+wordCount - Immersive reading: enable
readMode - Comment count missing: make sure both
postInfo.commentCountandwaline.commentare on - Don’t duplicate
post.meta: pick one
12. Decorative HR (hr)
Purpose: beautified style for
---horizontal rules in posts.Learning path: How to enable → Common options → All tunable keys → Boundaries & conflicts
12.1 How to enable
Effect: Markdown --- turns from a plain thin line into a decorated divider (a centered ornament or a gradient line).
Corresponding config (theme config):
hr:
enable: true12.2 Common options
① Turn the decoration off
Effect: --- falls back to the browser’s default thin rule.
Corresponding config:
hr:
enable: false12.3 All tunable keys
| Key | Type | Default | Allowed values / range | What it does |
|---|---|---|---|---|
hr.enable | bool | false | true / false | decorative divider switch |
12.4 Boundaries & conflicts
- When enabled, Markdown
---renders as a decorated divider instead of a plain thin line. - Affects only the body
<hr>, not front-matter delimiters.
12.5 Summary
- Minimum:
hr.enable: true - Too flashy: keep the default
false
Stats & Verification
13. Gitment Comments (gitment)
Purpose: GitHub Issues-based comment system (Gitment). Disabled by default — this blog primarily uses Waline.
Learning path: How to enable → Common options → All tunable keys → Boundaries & conflicts
13.1 How to enable
Effect: a GitHub Issues-style comment area appears at the bottom of posts; readers sign in with a GitHub account to comment.
Corresponding config (theme config):
gitment:
enable: true
owner: your-github-name
repo: your-comments-repo
oauth:
clientId: your-client-id
clientSecret: your-client-secret13.2 Common options
① Specify the repository
Effect: comments are written to GitHub Issues under owner/repo, one issue per post.
Corresponding config:
gitment:
owner: your-github-name
repo: your-comments-repo② OAuth credentials
Effect: readers can sign in and post comments; if wrong, the comment area only shows a login failure.
Corresponding config:
gitment:
oauth:
clientId: your-client-id
clientSecret: your-client-secret13.3 All tunable keys
| Key | Type | Default | Allowed values / range | What it does |
|---|---|---|---|---|
gitment.enable | bool | false | true / false | Gitment switch |
gitment.owner | string | — | GitHub username | repository owner |
gitment.repo | string | — | repository name | repo that stores comments |
gitment.oauth.clientId | string | — | OAuth App Client ID | GitHub OAuth |
gitment.oauth.clientSecret | string | — | OAuth App Client Secret | GitHub OAuth |
13.4 Boundaries & conflicts
- Enabling requires creating a GitHub OAuth App and filling
owner/repo/clientId/clientSecret. - Security warning: Gitment/Gitalk-style OAuth apps have excessive permissions (can read/write all of the authorizer’s public repos) — an attacker with the Token can wipe your public repos, which is why it is not recommended. Prefer utterances-style GitHub Apps scoped to a single repo (see the config comments).
- This is a separate entry point from
post.comments.type: only withtype: gitmentdoes this section actually take over the comment area.
13.5 Summary
- Minimum:
enable+owner+repo+ the two OAuth values - Security first: use utterances/giscus instead
- Not sure: leave it at the default
false
14. Tencent Captcha (tcaptcha)
Purpose: Tencent captcha (slider/click) before comment submission, to block spam.
Learning path: How to enable → Common options → All tunable keys → Boundaries & conflicts
14.1 How to enable
Effect: clicking submit pops up a slider or click captcha; the comment is written only after it passes.
Corresponding config (theme config):
tcaptcha:
enable: true
appid: 205716020314.2 Common options
① Use your own appid
Effect: the captcha uses the captcha config under your Tencent Cloud account; if the appid does not belong to your site, verification fails outright.
Corresponding config:
tcaptcha:
appid: your appid14.3 All tunable keys
| Key | Type | Default | Allowed values / range | What it does |
|---|---|---|---|---|
tcaptcha.enable | bool | false | true / false | captcha switch |
tcaptcha.appid | number | — | Tencent Cloud captcha appid | captcha app ID |
14.4 Boundaries & conflicts
- Currently only adapted and tested with Valine — other comment systems are unverified.
- Create a captcha in the Tencent Cloud Captcha console to get an appid; intro: official docs.
14.5 Summary
- Minimum:
enable+appid - Using Waline: not applicable (only Valine verified)
- No ICP filing / no console: leave it off
15. Waline Site Counter (minWalineCount)
Purpose: footer site-wide PV (page views) counter, served by Waline.
Learning path: How to enable → Common options → All tunable keys → Boundaries & conflicts
15.1 How to enable
Effect: the footer shows a “site visits: N” number that grows with traffic.
Corresponding config (theme config):
minWalineCount:
enable: true
serverURL: 'https://waline.17lai.site'
pageview: true15.2 Common options
① Change the service URL
Effect: the count is read from your Waline instance; a wrong URL means the number is missing or stuck at 0.
Corresponding config:
minWalineCount:
serverURL: 'https://your-waline.example.com'② Turn the footer counter off
Effect: the footer no longer shows site-wide PV.
Corresponding config:
minWalineCount:
enable: false15.3 All tunable keys
| Key | Type | Default | Allowed values / range | What it does |
|---|---|---|---|---|
minWalineCount.enable | bool | true | true / false | footer site-wide PV |
minWalineCount.serverURL | string | — | Waline service URL | data source |
minWalineCount.pageview | bool | true | true / false | page view stats v2 |
15.4 Boundaries & conflicts
- The footer “site PV” is fetched and updated from the Waline service by
walineCount.ejs. - Only accumulates with
pageview: true; enablingenablealone produces no data. - This and §16 are two independent counters — you can enable just one.
15.5 Summary
- Minimum:
enable+serverURL+pageview - Number stays 0: check that the server is reachable
- Don’t expose PV:
enable: false
16. Waline Comment Counter (minWalineCommentCount)
Purpose: site-wide comment count statistics.
Learning path: How to enable → Common options → All tunable keys → Boundaries & conflicts
16.1 How to enable
Effect: the site-wide comment total appears in the footer or the stats area.
Corresponding config (theme config):
minWalineCommentCount:
enable: true
serverURL: 'https://waline.17lai.site'
comment: true16.2 Common options
① Keep it off (recommended)
Effect: comment counting is still provided by waline.ejs (theme.waline.comment) — no duplicate requests.
Corresponding config:
minWalineCommentCount:
enable: false16.3 All tunable keys
| Key | Type | Default | Allowed values / range | What it does |
|---|---|---|---|---|
minWalineCommentCount.enable | bool | false | true / false | site-wide comment total |
minWalineCommentCount.serverURL | string | — | Waline service URL | data source |
minWalineCommentCount.comment | bool | true | true / false | comment count stats v2 |
16.4 Boundaries & conflicts
- Disabled by default — comment counts are already handled by
waline.ejs(theme.waline.comment); enabling this duplicates requests. - Enable it only when you want a site-wide aggregate (rather than per post).
16.5 Summary
- Default is fine: keep
enable: false - Want the site-wide total:
enable+comment+serverURL - Don’t enable together with
waline.comment: duplicate requests
17. Post Password Verification (verifyPassword)
Purpose: set an access password for specific posts; readers must enter it to read.
Learning path: How to enable → Common options → All tunable keys → Boundaries & conflicts
17.1 How to enable
Effect: opening an encrypted post masks the body and pops up a password prompt; a wrong password shows “Wrong password, returning to the homepage!”.
Corresponding config (theme config):
verifyPassword:
enable: true
promptMessage: 请输入访问本文章的密码
errorMessage: 密码错误,将返回主页!17.2 Common options
① Give a post a password
Effect: that post asks for the password as soon as it opens, and decrypts the body once correct.
Corresponding config (post front-matter):
password: "your password"② Change the prompt copy
Effect: the text above the password box and in the error dialog changes.
Corresponding config:
verifyPassword:
promptMessage: 请输入密码
errorMessage: 密码错误③ Encrypt a content snippet
Effect: only a section of the post is masked while the rest shows normally — handy for hiding config snippets.
Corresponding config (in the body):
{% encrypt password "title" "abstract" %}...{% endencrypt %}④ Encrypt a whole wiki
Effect: the entire wiki section requires a password to enter.
Corresponding config (source/_data/{wiki}-sidebar.yml):
encrypt_password: "your password"17.3 All tunable keys
| Key | Type | Default | Allowed values / range | What it does |
|---|---|---|---|---|
verifyPassword.enable | bool | false | true / false | master password-verification switch |
verifyPassword.promptMessage | string | — | any string | password prompt |
verifyPassword.errorMessage | string | — | any string | wrong-password message |
front-matter password | string | — | plaintext password | per-post encryption |
{wiki}-sidebar.yml encrypt_password | string | — | plaintext password | whole-wiki encryption |
Post front-matter (in-house HBE v4 since 2026-08-09; the password is plaintext, a SHA256 hash is no longer required):
password: "your password" # write the plaintext password directly17.4 Boundaries & conflicts
- In-house HBE v4 (AES-256-GCM, replacing hexo-blog-encrypt since 2026-08-09) — server-side AES-256-GCM encryption stores ciphertext in HTML (no plaintext leakage), front-end WebCrypto decryption. Write the plaintext password directly in front-matter
password(no SHA256 pre-hashing needed). - Other encryption methods:
- Content snippet encryption:
{% encrypt password "title" "abstract" %}...{% endencrypt %}(paragraph-level, supports nested tags, see the Tag Plugins chapter §15) - Wiki-wide encryption: add
encrypt_passwordto{wiki}-sidebar.yml(see the Layout & Pages chapter §8) - Password storage: autoSave stores the derived DK (not the password/plaintext), 1-day TTL
- Content snippet encryption:
- Refresh after decryption (2026-09-09): once decryption finishes, components in the body are re-initialized uniformly (shared by post/wiki/gallery, triggered by hbe-bundle onSuccess) — code block toolbar (codeWidget), image lightbox (articleInit), mermaid/progress bars (events.refresh), layout (boot.refresh). No manual page refresh is needed; each component is idempotent (
data-processedprevents duplication).
17.5 Summary
- Minimum:
verifyPassword.enable+ front-matterpassword - Hide only one paragraph: use the
encrypttag instead of encrypting the whole post - Encrypt a whole section:
encrypt_passwordin{wiki}-sidebar.yml - Password is plaintext: HBE v4 no longer needs SHA256
Sharing & Recommendations
18. Post Sharing (sharejs)
Purpose: share buttons at the bottom of posts, supporting multiple platforms.
Learning path: How to enable → Common options → All tunable keys → Boundaries & conflicts
18.1 How to enable
Effect: a row of share icons (Twitter, Facebook, QQ, Weibo, etc.) appears at the bottom of posts; clicking one shares the current post to that platform.
Corresponding config (theme config):
sharejs:
enable: true
sites: twitter,facebook,qq,qzone,wechat,weibo,douban18.2 Common options
① Choose the platforms
Effect: only the platforms listed in sites show icons; remove one and its icon disappears.
Corresponding config:
sharejs:
sites: qq,wechat,weibo,douban② Turn sharing off
Effect: no share icons at the end of posts.
Corresponding config:
sharejs:
enable: false18.3 All tunable keys
| Key | Type | Default | Allowed values / range | What it does |
|---|---|---|---|---|
sharejs.enable | bool | true | true / false | share button switch |
sharejs.sites | string | — | comma-separated: twitter/facebook/google/qq/qzone/wechat/weibo/douban/linkedin | platforms shown |
18.4 Boundaries & conflicts
sitesis a comma-separated platform list; options:twitter, facebook, google, qq, qzone, wechat, weibo, douban, linkedin.- This and §19 AddThis are alternatives — enabling both shows two sets of share entries.
18.5 Summary
- Minimum:
enable: true+sites - Mostly Chinese readers: keep
qq,wechat,weibo,douban - Choose one of AddThis and sharejs
19. AddThis Sharing (addthis)
Purpose: AddThis-based sharing module (alternative to sharejs).
Learning path: How to enable → Common options → All tunable keys → Boundaries & conflicts
19.1 How to enable
Effect: an AddThis share bar appears at the bottom of posts (a floating side bar or a horizontal row, depending on your AddThis config).
Corresponding config (theme config):
addthis:
enable: true
pubid: 613a04428f842fe119.2 Common options
① Use your own pubid
Effect: share statistics go to your AddThis account; an invalid pubid means the bar does not load.
Corresponding config:
addthis:
pubid: your pubid19.3 All tunable keys
| Key | Type | Default | Allowed values / range | What it does |
|---|---|---|---|---|
addthis.enable | bool | false | true / false | AddThis switch |
addthis.pubid | string | — | AddThis publisher ID | account identifier |
19.4 Boundaries & conflicts
- Choose one of sharejs/addthis;
enable: trueuses AddThis sharing, andpubidis obtained after registering at AddThis. - Enabling both shows two sets of share entries.
19.5 Summary
- Minimum:
enable+pubid - Already using sharejs: keep
false - Want stats: register with AddThis first
20. Related Posts (related_posts)
Purpose: related post recommendations at the bottom of posts.
Learning path: How to enable → Common options → All tunable keys → Boundaries & conflicts
20.1 How to enable
Effect: a “Related posts” block appears at the end of posts, listing several post cards by tag/category similarity.
Corresponding config (theme config):
related_posts:
enable: true
title: 相关文章推荐20.2 Common options
① Number of recommendations
Effect: up to 5 posts are listed at the bottom; lower the number for a shorter list, raise it for a longer one.
Corresponding config:
related_posts:
params:
maxCount: 5② Show date/image/excerpt
Effect: cards gain a date, cover image or excerpt text; with all false only the title shows.
Corresponding config:
related_posts:
params:
isDate: true
isImage: true
isExcerpt: true③ Show on the homepage too
Effect: related recommendations also appear under the post cards on the homepage.
Corresponding config:
related_posts:
display_in_home: true20.3 All tunable keys
| Key | Type | Default | Allowed values / range | What it does |
|---|---|---|---|---|
related_posts.enable | bool | false | true / false | recommendation block switch |
related_posts.title | string | — | any string (empty = default) | block title |
related_posts.display_in_home | bool | false | true / false | show on the homepage |
related_posts.params.maxCount | number | 5 | positive integer | max recommendations |
related_posts.params.PPMixingRate | number | 0.25 | 0–1 | mixing ratio |
related_posts.params.isDate | bool | false | true / false | show date |
related_posts.params.isImage | bool | false | true / false | show image |
related_posts.params.isExcerpt | bool | false | true / false | show excerpt |
20.4 Boundaries & conflicts
- Recommends by tag/category similarity; with
display_in_home: true, homepage post cards also show related recommendations. PPMixingRatecontrols the mix of popular and similar posts — its effect has to be measured against your own content (other values unverified).
20.5 Summary
- Minimum:
enable: true - Cards too plain: enable
isImage/isExcerpt - Homepage too crowded:
display_in_home: false
21. LeanCloud Read Count (leancloud_visitors)
Purpose: LeanCloud-based post read count (the data source when
post.meta.views.source: leancloud).Learning path: How to enable → Common options → All tunable keys → Boundaries & conflicts
21.1 How to enable
Effect: the “N views” in the post meta info is counted by LeanCloud and increments on refresh.
Corresponding config (theme config):
leancloud_visitors:
enable: true
app_id: your-app-id
app_key: your-app-keyAnd confirm:
post:
meta:
views:
source: leancloud21.2 Common options
① Change the app credentials
Effect: counts are written to your own LeanCloud app; wrong credentials mean the read count is not shown.
Corresponding config:
leancloud_visitors:
app_id: your-app-id
app_key: your-app-key21.3 All tunable keys
| Key | Type | Default | Allowed values / range | What it does |
|---|---|---|---|---|
leancloud_visitors.enable | bool | true | true / false | LeanCloud read count switch |
leancloud_visitors.app_id | string | — | LeanCloud App ID | app identifier |
leancloud_visitors.app_key | string | — | LeanCloud App Key | app key |
21.4 Boundaries & conflicts
- After enabling, set §2
post.meta.views.sourcetoleancloudfor it to take effect; this blog uses umami by default, this config is kept as a backup. app_keyappears in the front-end output — configure the LeanCloud app with read-only/restricted permissions.
21.5 Summary
- Minimum:
enable+ two credentials +source: leancloud - Mostly umami: this section can stay off
- Mind the permissions:
app_keyis visible to the front end
22. Google AdSense (googleAd)
Purpose: Google AdSense ad slot on post pages.
Learning path: How to enable → Common options → All tunable keys → Boundaries & conflicts
22.1 How to enable
Effect: an AdSense slot appears on post pages (blank until the account is approved).
Corresponding config (theme config):
googleAd:
enable: true
adClient: "ca-pub-2899930387274309"22.2 Common options
① Change the publisher ID
Effect: ads are billed to your AdSense account; a wrong ID means ads do not load.
Corresponding config:
googleAd:
adClient: "ca-pub-your-id"22.3 All tunable keys
| Key | Type | Default | Allowed values / range | What it does |
|---|---|---|---|---|
googleAd.enable | bool | false | true / false | ad slot switch |
googleAd.adClient | string | — | publisher ID starting with ca-pub- | AdSense account |
22.4 Boundaries & conflicts
adClientis the AdSense publisher ID (starting withca-pub-), obtained after registering at Google AdSense.- The config comment marks it “not yet complete”.
22.5 Summary
- Minimum:
enable+adClient - Not registered: keep
false - Feature incomplete: verify on a small scale before going live
Appendix: Post Page Config Quick Reference
| Config item | Location | Description |
|---|---|---|
| Post hero | post.banner_img etc. | per-post override via front-matter banner_img |
| Author/date | post.meta.author / post.meta.date | date format "LL a" |
| Word count/time | post.meta.wordcount / post.meta.min2read | awl 1 / wpm 300 |
| Views | post.meta.views | sources umami/busuanzi/leancloud/waline |
| Updated | post.updated | off by default, front-matter updated overrides |
| TOC | toc | per-post off via front-matter toc: false |
| Comments | post.comments | type: waline, front-matter comments controls |
| Reward | post.reward | WeChat/Alipay payment QR |
| Copyright | post.copyright (with license sub-key) | per-post override via front-matter reprintPolicy |
| Math | post.math | specific: true + front-matter mathjax: true |
| Diagrams | post.mermaid | specific: true + front-matter mermaid: true |
| Prev/next, outdate, category bar, ads | post.prev_next / outdate / category_bar / advertisements | see the Layout & Pages chapter |
Suggested reading order: first get the page body configured with §1–§12 (hero, meta, TOC, comments, copyright, math), then wire up stats and sharing one by one with §13–§22. Each section takes a single
enablechange to see the effect — if something breaks, roll back that section’s config first.