Publishing safely
On this page
Publishing safely#
Explicit mode publishes only notes whose frontmatter contains Boolean publish: true. Implicit mode must be explicitly configured and publishes eligible notes unless denied. A Boolean publish: false always denies publication. Inclusion patterns do not override exclusions. Hidden paths, .obsidian, .git, .trash and symlinks are not public content.
publishing:
mode: explicit
content:
include: ["Public/**"]
exclude: ["Public/Private/**"]
Only eligible notes enter the public registry. HTML, backlinks, navigation and any public index must be generated from that registry. Blocked links are redacted with generic local diagnostics, rather than publishing private target metadata. Strict builds reject diagnostics. Do not disable strict mode simply to hide unexpected publication errors.
Assets are reference-driven and restricted to supported safe extensions. Unreferenced vault files are not copied. SVGs are rejected in Phase 1. A referenced image can itself be sensitive: explicitly review images, PDFs and media before publishing. Exclusions apply to assets too.
The filter controls site output, not Git history. Never commit an entire private vault to a public repository and assume publish: false protects it. Prefer a dedicated publishing vault or a private content repository with controlled hosting access. Preview builds use the same policy; preview URLs are not private by default. Previously published content can remain in old deployments, caches and archives.
After changing a note to private, require a successful build before deployment. A failed build preserves the last successful site, including any content public at that time.
Linked notes
Related notes
Linked from
- Getting started
To use an existing vault, initialize a separate publishing project with vaw init publishing --vault /path/to/vault. Source notes are never rewritten. Keep outpu… - VAW documentation
Use vaw