Routes and fields
React, Vite, Liquid
All three policy pages use one file:templates/policy.json. It holds one section, usually main-policy. The section reads the URL and shows the matching text.
Noir’s real section, in Liquid:
src/sections/main-policy/index.liquid
index.ts script next to it shows the article that matches the URL, and cleans the HTML before showing it.
Nunjucks
The file name sets the page:templates/{name}.njk.
templates/privacy-policy.njk
Wrong, will not load:
privacy.njk, refunds.njk, or links to /privacy and /refunds on a Nunjucks store.
Footer:
autoescape is off in Nunjucks. Don’t put policy HTML inside attributes. See Nunjucks Pitfalls.
Empty policy
- Show a short message, like “No policy added yet”.
- Never make up placeholder legal text.

