Built with Chinaski

Snippets (Content Model)

Snippets are for code that must appear in the built pages but doesn’t fit a content field — analytics fragments, verification meta tags, launcher scripts, pixel tags. They are code-first building blocks: you manage them as code, they’re injected verbatim (at build time) into the site’s head or body.

Where snippets can live

  • Global — injected on every page the snippet’s language covers.
  • Per item — attached to individual pages or posts.
  • Language is optionally set; a snippet with no language applies to every language.

Two placement positions exist: head and body, with sort order controlling the sequence when several snippets share a position or item.

The guardrails

  • Air-gap mode removes any snippet that references an external URL during builds, so a page never ships a CDN reference even if a snippet was written with one.
  • Snippets are a known, deliberate injection point — they’re admin-managed only, and each injection is handled by the builder; no snippet executes or is fetched at request time on the static site.
  • A per-snippet privacy-sensitive flag exists in the data model for items that shouldn’t be exposed through data exports.