Loading...

Loading...

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.webp

1.3 All tunable keys

KeyTypeDefaultAllowed values / rangeWhat it does
post.banner_imgstring—image path or full URLglobal post page hero image
post.banner_img_heightnumber—0–100 (viewport percentage)hero image height
post.banner_mask_alphanumber—0–1black mask opacity
front-matter banner_imgstringinherits globalimage pathper-post hero override
front-matter imgstring—image pathexplicitly set the hero (highest priority)
featureImagesarray—array of image pathsfallback pool used when img is absent
background.image.randombool—true / falsewhen random background is on, the post banner is not shown

1.4 Boundaries & conflicts

Hero image source priority (_partial/post/post-cover rendering logic):

  1. front-matter img (e.g. img: /medias_webp/xxx.webp) — explicit
  2. without img, pick one from theme.featureImages by a hash of the title (/medias_webp/featureimages/0-44.webp; the same title always gets the same image)
  3. when random background is on (theme.background.image.random), the post banner is hidden

Note: featureImages only sources from medias_webp/featureimages/ (webp, numbered 0-44, with a dark/ subdirectory); the legacy medias/featureimages/ (jpg) is removed — do not reference .jpg paths.

1.5 Summary

  • Minimum: write banner_img alone and the hero appears
  • Make the title stand out: raise banner_mask_alpha, or lower banner_img_height
  • Specialize one post: write img / banner_img in 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: true

2.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: true

2.3 All tunable keys

KeyTypeDefaultAllowed values / rangeWhat it does
post.meta.author.enableboolfalsetrue / falseshow the author
post.meta.date.enablebooltruetrue / falseshow the date
post.meta.date.formatstring"LL a"ISO-8601 / dayjs format stringdate format
post.meta.wordcount.enablebooltruetrue / falseword count
post.meta.min2read.enablebooltruetrue / falsereading time
post.meta.min2read.awlnumber1positive numberaverage characters per word (equivalence factor)
post.meta.min2read.wpmnumber300positive numberwords read per minute
post.meta.views.enablebooltruetrue / falseviews
post.meta.views.sourcestring"umami"busuanzi / leancloud / umami / walineview counter data source

2.4 Boundaries & conflicts

  • post.meta.views.source decides where views come from — this blog uses umami (self-hosted analytics); you can also switch to busuanzi (zero config) or Waline comment views.
  • Choosing leancloud also requires the leancloud_visitors config from §21; choosing waline requires waline.pageview: true.
  • post.meta and §11 postInfo are 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 umami for views, don’t enable leancloud_visitors at 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:00

3.3 All tunable keys

KeyTypeDefaultAllowed values / rangeWhat it does
post.updated.enableboolfalsetrue / falseshow the update notice
post.updated.date_formatstring"LL a"ISO-8601 / dayjs format stringdate format
post.updated.relativeboolfalsetrue / falseshow relative time (“3 days ago”)
post.updated.note_classstringinfodefault / primary / info / success / warning / danger / lightnotice style

3.4 Boundaries & conflicts

  • Defaults to the md file modification time; if front-matter updated is present, that wins.
  • note_class relies on the theme’s note styles — an unknown value falls back to the default style (other values unverified).

3.5 Summary

  • Minimum: enable enable only
  • 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: true

4.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: false

4.3 All tunable keys

KeyTypeDefaultAllowed values / rangeWhat it does
toc.enablebooltruetrue / falseglobal TOC switch
toc.headingSelectorstring"h2,h3,h4,h5,h6"CSS selector stringheading levels included
toc.collapseDepthnumber00 or a positive integercollapse depth
front-matter tocboolinherits globaltrue / falseper-post switch

4.4 Boundaries & conflicts

  • collapseDepth of 0 means fully collapsed; >0 expands 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: false on 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

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 | discuss

You 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: false

5.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):

EngineConfig keyRequired paramsNotes
ValinevalineappId/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
Gitalkgitalkowner/repo/oauth.clientId/oauth.clientSecret/adminGitHub Issues-based; OAuth app has excessive permissions, not recommended
Gitmentgitmentowner/repo/oauth.clientId/oauth.clientSecretGitHub Issues-based; same security issue as Gitalk (see §13)
Disqusdisqusshortnamemainstream foreign comment service, unstable in China
LiverelivereuidKorean service, usable in China
ChangyanchangyanappId/confSohu service, requires ICP filing
TwikootwikooenvId (optional region/path)Tencent CloudBase deployment, see twikoo.js.org
Cusdiscusdishost/app_id/langthird-party or self-hosted, see cusdis.com
Giscusgiscusrepo/repo-id/category/category-id (optional mapping/theme-light/theme-dark/lang)GitHub Discussions-based, see giscus.app
Remark42remark42host/site_id (optional max_shown_comments/locale/components)requires self-hosted server, see remark42.com
DiscussdiscussserverURLs/pathself-hosted, multi-platform multi-database, see discuss.js.org
Utterancesutterancesrepo/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.type to the target engine; ② fill in the required params from the table above; ③ hexo clean && hexo generate to rebuild. GitHub-based engines (Gitalk/Gitment) carry OAuth permission risks — prefer utterances/giscus-style single-repo solutions.

5.3 All tunable keys

KeyTypeDefaultAllowed values / rangeWhat it does
post.comments.enablebooltruetrue / falsesite-wide comment switch
post.comments.typestringwalinesee the 13 engines abovecomment engine
waline.enablebooltruetrue / falseWaline switch
waline.serverURLstring—service URLWaline server (required)
waline.avatarstring'mp'''/mp/identicon/monsterid/wavatar/retro/hideavatar style
waline.langstringzh-CNlanguage codeUI language
waline.darkstring—CSS selectordark mode adaptation
waline.loginstringenableenable / forcelogin mode
waline.wordLimitnumber10000 (unlimited) / positive integercomment word limit
waline.pageSizenumber10positive integercomments per page
waline.pageviewboolfalsetrue / falseview stats v2
waline.commentbooltruetrue / falsecomment count stats v2
waline.reactionstring—emoji URL arrayemoji reactions
waline.searchboolfalsetrue / falseemoji search
waline.imageUploaderboolfalsetrue / falseimage upload
waline.metastring"['nick', 'mail', 'link']"field array stringfillable fields
waline.requiredMetastring"['nick', 'mail']"field array stringrequired fields
waline.recaptchaV3Keystring''reCAPTCHA v3 keyanti-spam
waline.highlight.enableboolfalsetrue / falseWaline built-in highlighter
waline.highlight.custom_highlighterstring—JS function stringcustom highlighter
front-matter commentsboolinherits globaltrue / falsepage-level switch

5.4 Boundaries & conflicts

  • Whichever engine type points to, you must also configure that plugin’s required params (e.g. this blog’s waline.serverURL). Page-level control uses front-matter comments: true/false (same for standalone pages, message pages and friends pages).
  • Valine-specific keys have no effect under Waline (waline.ejs does not read them).
  • §16 minWalineCommentCount is off by default because it duplicates the comment-count request made by waline.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.dark selector
  • 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.webp

6.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: false

6.3 All tunable keys

KeyTypeDefaultAllowed values / rangeWhat it does
post.reward.enablebooltruetrue / falseshow the reward card
post.reward.titlestring—any stringcard title
post.reward.wechatstring—local path or URLWeChat payment QR
post.reward.alipaystring—local path or URLAlipay 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

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: false

7.3 All tunable keys

KeyTypeDefaultAllowed values / rangeWhat it does
post.copyright.enablebooltruetrue / falseshow the copyright card
post.copyright.licensestring'cc_by_nc_sa'cc_by / cc_by_nd / cc_by_sa / cc_by_nc / cc_by_nc_nd / cc_by_nc_sasite-wide default license
front-matter reprintPolicystringinherits globalthe same 6 valuesper-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 reprintPolicy takes priority over the global license.
  • 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: true

8.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: katex

8.3 All tunable keys

KeyTypeDefaultAllowed values / rangeWhat it does
post.math.enableboolfalsetrue / falsemaster math switch
post.math.specificbooltruetrue / falseenable only for posts that declare it
post.math.enginestringmathjaxmathjax / katexrendering engine
front-matter mathjaxbool—trueper-post enable marker

8.4 Boundaries & conflicts

  • specific: true is this blog’s recommended usage — posts without formulas don’t load the engine; when needed, add mathjax: true in front-matter (markdown-plugins.ejs checks page.mathjax).
  • Custom pages (non-post) using formulas also need mathjax: true in front-matter.
  • After changing engine you 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 (```mermaid code 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: true

Where the options come from: post.mermaid.options is passed verbatim to mermaid.initialize() (i.e. the mermaidAPI config), so theme / startOnLoad / securityLevel / flowchart follow 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: 4

9.3 All tunable keys

KeyTypeDefaultAllowed values / rangeWhat it does
post.mermaid.enablebooltruetrue / falsemaster mermaid switch
post.mermaid.specificbooltruetrue / falseenable only for posts that declare it
post.mermaid.options.themestring'default'mermaid theme name (default/dark/forest/neutral etc.)default theme (overridden by light/dark mode)
post.mermaid.options.startOnLoadbooltruetrue / falserender on page load
post.mermaid.options.securityLevelstring'loose'strict / loose / antiscriptsecurity level
post.mermaid.options.flowchart.useMaxWidthboolfalsetrue / falsewhether flowcharts fill the container
post.mermaid.options.gantt.useMaxWidthbooltruetrue / falsewhether gantt charts fill the container
post.mermaid.options.gantt.barHeightnumber20positive integergantt row height
post.mermaid.options.gantt.barGapnumber4positive integergantt row gap
front-matter mermaidbool—trueper-post enable marker

9.4 Boundaries & conflicts

  • The mermaid library is slow to load; with specific: true, write mermaid: true in the post front-matter to enable it (the same on-demand pattern as math).
  • theme is 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: true

10.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: true

10.3 All tunable keys

KeyTypeDefaultAllowed values / rangeWhat it does
post.prev_next.enablebooltruetrue / falseprev/next navigation cards
post.outdate.enableboolfalsetrue / falseoutdated content notice
post.outdate.warning_daynumber365positive integer (days)yellow notice threshold
post.outdate.error_daynumber3650positive integer (days)red notice threshold
post.category_bar.enablebooltruetrue / falsesidebar category bar
post.category_bar.specificbooltruetrue / falseshow only for posts that declare it
post.category_bar.post_order_bystringtitle (theme default)sort field, e.g. '-date'post sorting
post.category_bar.post_limitnumber00 (unlimited) / positive integermax items shown
post.webpush.enablebooltruetrue / falsepush subscribe button
post.advertisements[].idstring—any stringad identifier
post.advertisements[].textstring—any stringad copy
post.advertisements[].enablebooltruetrue / falseper-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 (the webpushr site ID is configured in the theme head template).
  • With category_bar.specific: true, front-matter must contain category_bar: true, otherwise the bar does not appear.
  • Valid post_order_by values 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_bar or advertisements first
  • Push needs ops: webpush depends 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; postInfo controls 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: true

11.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: false

11.3 All tunable keys

KeyTypeDefaultAllowed values / rangeWhat it does
postInfo.authorbooltruetrue / falseauthor
postInfo.datebooltruetrue / falsepublish date
postInfo.updatebooltruetrue / falseupdate date
postInfo.wordCountbooltruetrue / falsepost word count
postInfo.totalCountbooltruetrue / falsesite total word count
postInfo.min2readbooltruetrue / falsereading time
postInfo.readModebooltruetrue / falsereading mode
postInfo.readCountbooltruetrue / falseread count
postInfo.commentCountbooltruetrue / falsecomment 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 / totalcount helpers are theme-native; totalcount renders the footer site-wide total (including wiki pages and the plaintext count of encrypted posts).
  • Enabling it together with §2 post.meta shows the info twice; keep only one.

11.5 Summary

  • Minimum: author + date + wordCount
  • Immersive reading: enable readMode
  • Comment count missing: make sure both postInfo.commentCount and waline.comment are 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: true

12.2 Common options

① Turn the decoration off

Effect: --- falls back to the browser’s default thin rule.

Corresponding config:

hr:
  enable: false

12.3 All tunable keys

KeyTypeDefaultAllowed values / rangeWhat it does
hr.enableboolfalsetrue / falsedecorative 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-secret

13.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-secret

13.3 All tunable keys

KeyTypeDefaultAllowed values / rangeWhat it does
gitment.enableboolfalsetrue / falseGitment switch
gitment.ownerstring—GitHub usernamerepository owner
gitment.repostring—repository namerepo that stores comments
gitment.oauth.clientIdstring—OAuth App Client IDGitHub OAuth
gitment.oauth.clientSecretstring—OAuth App Client SecretGitHub 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 with type: gitment does 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: 2057160203

14.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 appid

14.3 All tunable keys

KeyTypeDefaultAllowed values / rangeWhat it does
tcaptcha.enableboolfalsetrue / falsecaptcha switch
tcaptcha.appidnumber—Tencent Cloud captcha appidcaptcha app ID

14.4 Boundaries & conflicts

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: true

15.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: false

15.3 All tunable keys

KeyTypeDefaultAllowed values / rangeWhat it does
minWalineCount.enablebooltruetrue / falsefooter site-wide PV
minWalineCount.serverURLstring—Waline service URLdata source
minWalineCount.pageviewbooltruetrue / falsepage 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; enabling enable alone 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: true

16.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: false

16.3 All tunable keys

KeyTypeDefaultAllowed values / rangeWhat it does
minWalineCommentCount.enableboolfalsetrue / falsesite-wide comment total
minWalineCommentCount.serverURLstring—Waline service URLdata source
minWalineCommentCount.commentbooltruetrue / falsecomment 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

KeyTypeDefaultAllowed values / rangeWhat it does
verifyPassword.enableboolfalsetrue / falsemaster password-verification switch
verifyPassword.promptMessagestring—any stringpassword prompt
verifyPassword.errorMessagestring—any stringwrong-password message
front-matter passwordstring—plaintext passwordper-post encryption
{wiki}-sidebar.yml encrypt_passwordstring—plaintext passwordwhole-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 directly

17.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_password to {wiki}-sidebar.yml (see the Layout & Pages chapter §8)
    • Password storage: autoSave stores the derived DK (not the password/plaintext), 1-day TTL
  • 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-processed prevents duplication).

17.5 Summary

  • Minimum: verifyPassword.enable + front-matter password
  • Hide only one paragraph: use the encrypt tag instead of encrypting the whole post
  • Encrypt a whole section: encrypt_password in {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,douban

18.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: false

18.3 All tunable keys

KeyTypeDefaultAllowed values / rangeWhat it does
sharejs.enablebooltruetrue / falseshare button switch
sharejs.sitesstring—comma-separated: twitter/facebook/google/qq/qzone/wechat/weibo/douban/linkedinplatforms shown

18.4 Boundaries & conflicts

  • sites is 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: 613a04428f842fe1

19.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 pubid

19.3 All tunable keys

KeyTypeDefaultAllowed values / rangeWhat it does
addthis.enableboolfalsetrue / falseAddThis switch
addthis.pubidstring—AddThis publisher IDaccount identifier

19.4 Boundaries & conflicts

  • Choose one of sharejs/addthis; enable: true uses AddThis sharing, and pubid is 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

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: true

20.3 All tunable keys

KeyTypeDefaultAllowed values / rangeWhat it does
related_posts.enableboolfalsetrue / falserecommendation block switch
related_posts.titlestring—any string (empty = default)block title
related_posts.display_in_homeboolfalsetrue / falseshow on the homepage
related_posts.params.maxCountnumber5positive integermax recommendations
related_posts.params.PPMixingRatenumber0.250–1mixing ratio
related_posts.params.isDateboolfalsetrue / falseshow date
related_posts.params.isImageboolfalsetrue / falseshow image
related_posts.params.isExcerptboolfalsetrue / falseshow excerpt

20.4 Boundaries & conflicts

  • Recommends by tag/category similarity; with display_in_home: true, homepage post cards also show related recommendations.
  • PPMixingRate controls 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-key

And confirm:

post:
  meta:
    views:
      source: leancloud

21.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-key

21.3 All tunable keys

KeyTypeDefaultAllowed values / rangeWhat it does
leancloud_visitors.enablebooltruetrue / falseLeanCloud read count switch
leancloud_visitors.app_idstring—LeanCloud App IDapp identifier
leancloud_visitors.app_keystring—LeanCloud App Keyapp key

21.4 Boundaries & conflicts

  • After enabling, set §2 post.meta.views.source to leancloud for it to take effect; this blog uses umami by default, this config is kept as a backup.
  • app_key appears 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_key is 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

KeyTypeDefaultAllowed values / rangeWhat it does
googleAd.enableboolfalsetrue / falsead slot switch
googleAd.adClientstring—publisher ID starting with ca-pub-AdSense account

22.4 Boundaries & conflicts

  • adClient is the AdSense publisher ID (starting with ca-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 itemLocationDescription
Post heropost.banner_img etc.per-post override via front-matter banner_img
Author/datepost.meta.author / post.meta.datedate format "LL a"
Word count/timepost.meta.wordcount / post.meta.min2readawl 1 / wpm 300
Viewspost.meta.viewssources umami/busuanzi/leancloud/waline
Updatedpost.updatedoff by default, front-matter updated overrides
TOCtocper-post off via front-matter toc: false
Commentspost.commentstype: waline, front-matter comments controls
Rewardpost.rewardWeChat/Alipay payment QR
Copyrightpost.copyright (with license sub-key)per-post override via front-matter reprintPolicy
Mathpost.mathspecific: true + front-matter mathjax: true
Diagramspost.mermaidspecific: true + front-matter mermaid: true
Prev/next, outdate, category bar, adspost.prev_next / outdate / category_bar / advertisementssee 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 enable change to see the effect — if something breaks, roll back that section’s config first.

Comments
Data Loading...