PeaPress
v0.12.0Complete User Guide
Assets

Assets and src/_data: your static toolbox

Files that need to ship untouched and data that drives templating.

Asset handling

  • static/ copies files unchanged into dist/
  • Whatever in _data feeds Nunjucks variables
  • Image formats: WebP preferred; JPEG fallback

Example _data

{
  "siteName": "Acorn Notes",
  "nav": [
    { "label": "Blog", "url": "/blog/" },
    { "label": "About", "url": "/about/" }
  ]
}