Structuring Custom URLs in Ghost with routes.yaml
Learn how to use routes.yaml in Ghost 5.x to create custom URL structures, collections, and taxonomies without modifying core code.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Learn how to use routes.yaml in Ghost 5.x to create custom URL structures, collections, and taxonomies without modifying core code.
Handlebars {{#if}} treats empty arrays and objects as truthy, so empty collections can render content you expected to hide. Use .length or a custom helper to test collections reliably.
When integrating Handlebars block helpers into a web app, isolation, validation, and graceful error handling are essential. This note outlines minimal design, trust boundaries, operational checks, and failure scenarios.
Custom helpers let you reuse logic in Handlebars templates, but they can also hide complexity and introduce security holes. Learn how to register helpers cleanly, keep templates readable, and avoid common pitfalls like XSS and async bugs.
Learn how Handlebars async helpers let you fetch data directly in templates without blocking the render loop, and see the trade‑offs you need to consider.
Resolve 'Handlebars helper not found' errors by diagnosing registration order, instance mismatches, and naming inconsistencies with this technical guide.
Use Handlebars custom helpers for presentation formatting only. Learn how to register helpers, keep them synchronous and pure, and avoid logic creep that breaks the logic-less pattern.
Decide whether to load Handlebars partials from files or register them inline in Node.js, with a startup registration pattern and verification steps.
Precompiling Handlebars moves template parsing from the browser to your build step. Here is how the runtime-only setup works, where it breaks, and how to verify it.