Skip to content
Honmaple
Documentation navigation

Hooks

On this page

Hooks extend Snow's content processing and build workflow.

List Hooks

snow hooks
# Output: mount, snakecase, assets(enabled), pelican, rewrite, filter, encrypt(enabled), links(enabled), shortcode(enabled), minify, alias

Configuration

Lower weight values run first. Hooks with equal weights run in alphabetical order. The assets, encrypt, links, and shortcode hooks are enabled by default.

Enabling an unregistered hook with hooks.<name>.enabled: true causes the build to fail. With --debug, builds and previews display the enabled hooks in execution order:

Enabled hooks: assets(20), encrypt(50), links(55), shortcode(60)

Built-in Hooks

Hook Enabled by Default Purpose
assets Yes Process static resources
encrypt Yes Encrypt content
links Yes Resolve local content links to output paths
shortcode Yes Embed reusable components
mount No Mount external files or directories
alias No Redirect old URLs
pelican No Convert document formats
rewrite No Rewrite front matter
filter No Filter pages
minify No Minify output
snakecase No Access template values using snake_case