diff --git a/.claude/skills/theme-creator/SKILL.md b/.claude/skills/theme-creator/SKILL.md index 8613fef..33eaa62 100644 --- a/.claude/skills/theme-creator/SKILL.md +++ b/.claude/skills/theme-creator/SKILL.md @@ -44,6 +44,7 @@ Individual posts and pages can override the theme or template via frontmatter: title: My Special Post theme: terminal # Render this post with the terminal theme template: custom.html # Use custom.html instead of post.html +toc: false # Suppress auto-generated post.toc for this post --- ``` diff --git a/.claude/skills/theme-creator/references/template-variables.md b/.claude/skills/theme-creator/references/template-variables.md index 8b2ca71..b85d49b 100644 --- a/.claude/skills/theme-creator/references/template-variables.md +++ b/.claude/skills/theme-creator/references/template-variables.md @@ -21,3 +21,11 @@ | `page.html` | `page` (Page), `notes` (list) | | `404.html` | Global context only | | `admin/admin.html` | `user` (dict), `analytics` (dict), `notes` (list[NoteResponse]), `cache_size` (int) | + +## Useful Post fields + +`post.html` is the rendered post body. A few less-obvious fields: + +- `post.toc` — auto-generated table-of-contents HTML (a `
` wrapping a nested `