Hexo Encrypt Toc

Patches any Hexo theme so its table of contents works with hexo-blog-encrypt without leaking encrypted headings. Use when a theme shows an empty, hidden, or plaintext TOC on password-protected posts, when installing hexo-blog-encrypt on a theme with a TOC, or when asked to "fix TOC for encrypted posts". Do NOT use for themes with no TOC, or for changing the encryption plugin itself.

1,051 stars 107 forksFrontend & Design

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add D0n9X1n/hexo-blog-encrypt --skill hexo-encrypt-toc
Manual install
git clone --depth 1 https://github.com/D0n9X1n/hexo-blog-encrypt.git /tmp/hexo-blog-encrypt
mkdir -p ~/.claude/skills
cp -r /tmp/hexo-blog-encrypt/skills/hexo-encrypt-toc ~/.claude/skills/hexo-encrypt-toc

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# Encrypted-post TOC for any Hexo theme

hexo-blog-encrypt replaces `page.content` with ciphertext in an
`after_post_render` filter, sets `page.encrypt = true`, and keeps the plaintext
in `page.origin`. After the reader decrypts, it swaps in the post as
`#hexo-blog-encrypt.hbe-decrypted-content` and dispatches `hexo-blog-decrypt`
on `window`.

That breaks theme TOCs in one of three ways:

| Symptom | Cause | Risk |
| --- | --- | --- |
| TOC empty or missing | `toc(page.content)` sees ciphertext | Cosmetic |
| TOC visible on the locked page | `toc(page.origin)` rendered | **Plaintext headings published** |
| TOC hidden, appears after decrypt | `toc(page.origin)` with `display:none` | **Plaintext headings published** (view source) |

The goal is always the same: **no encrypted heading in the generated HTML, and
a working TOC after decryption.** This procedure works for any theme; the
per-theme notes in [Per-theme examples](#per-theme-examples) are examples, not a
whitelist. Everything the procedure needs is in this one file: the builder
script is [Appendix A](#appendix-a-hbe-tocjs) and the leak checker is
[Appendix B](#appendix-b-check-toc-leakjs).

## 1. Locate the TOC

Run from the Hexo site root. Include theme packages installed from npm.
Read the full skill on GitHub

Details

Skill name
hexo-encrypt-toc
Path
skills/hexo-encrypt-toc/SKILL.md
License
MIT
Repo updated
13 October 2026

FAQ

What does the Hexo Encrypt Toc skill do?

Patches any Hexo theme so its table of contents works with hexo-blog-encrypt without leaking encrypted headings. Use when a theme shows an empty, hidden, or plaintext TOC on password-protected posts, when installing hexo-blog-encrypt on a theme with a TOC, or when asked to "fix TOC for encrypted posts". Do NOT use for themes with no TOC, or for changing the encryption plugin itself.

How do I install the Hexo Encrypt Toc skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add D0n9X1n/hexo-blog-encrypt --skill hexo-encrypt-toc. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Hexo Encrypt Toc popular?

It lives in D0n9X1n/hexo-blog-encrypt, which has 1,051 GitHub stars and 107 forks.

Related skills

Sw Premise Theme

2.1k

jtydhr88/screenwriting-skills

Premise, theme, controlling idea, subject selection and logline for scripts (前提/主题/立意/选材/戏核) — merged from Lajos Egri's premise-as-tyrant and dialectic, Robert McKee's controlling idea (value + cause) and idea/counter-idea, Neill Hicks' five premise questions, Lisa Cron's "third rail" (desire vs misbelief, origin scene, what-if), Julian Hoxter's logline and theme-attitude rule, Blake Snyder's logline/genre/title tests, and Lu Jun's Chinese craft chapters on 选材要严/开掘要深/视角要新/戏核要好/情节要奇. Use when turning a vague idea into a premise, finding what a story is really about, choosing a subject and angle

Frontend & Design220

Aesthetic

2.2k

mrgoonie/claudekit-skills

Create aesthetically beautiful interfaces following proven design principles. Use when building UI/UX, analyzing designs from inspiration sites, generating design images with ai-multimodal, implementing visual hierarchy and color theory, adding micro-interactions, or creating design documentation. Includes workflows for capturing and analyzing inspiration screenshots with chrome-devtools and ai-multimodal, iterative design image generation until aesthetic standards are met, and comprehensive design system guidance covering BEAUTIFUL (aesthetic principles), RIGHT (functionality/accessibility),

Frontend & Design418

C4 Component

2k

rmyndharis/antigravity-skills

Expert C4 Component-level documentation specialist. Synthesizes C4 Code-level documentation into Component-level architecture, defining component boundaries, interfaces, and relationships. Creates component diagrams and documentation. Use when synthesizing code-level documentation into logical components.

Frontend & Design295

Triage Frontend Issues

1.2k

getsentry/skills

Triage new issues in the Sentry `javascript` project by archiving non-actionable noise. Use when asked to "triage issues", "triage the javascript project", "archive non-actionable issues", "triage new frontend issues", or "clean up the sentry/javascript queue". Operates only on the sentry/javascript project, only archives (never resolves), and always archives with `untilEscalating`.

Frontend & DesignIn 1 list70

Frontend Patterns

2k

xu-xiang/everything-claude-code-zh

Frontend development patterns for React, Next.js, state management, performance optimization, and UI best practices.

Frontend & Design332

Browse Local Sentry

1.2k

getsentry/skills

Connects an agent's browser to a local Sentry dev server (dev-ui on *.dev.getsentry.net or the full devserver).

Frontend & DesignIn 1 list70

Browse the most popular Claude skills, all frontend & design skills, or write your own with the skills generator.