I have custom tags route in route.yaml
:
routes:
/tags/:
template: tags
data: tag.all
collections:
/:
permalink: /{slug}/
template: index
taxonomies:
tag: /tag/{slug}/
author: /author/{slug}/
I created a tags.hbs
at the root level of the template:
{{!< default}}
{{!-- The tag above means - insert everything in this file into the {body} of the default.hbs template --}}
<main id="site-main" class="site-main outer">
<div class="inner posts">
<div class="post-feed">
Test filler to confirm page working
</div>
</div>
</main>
Still didnāt work. So I broke the syntax in route.yaml
to test, and ghost fails to start due to syntax error with route.yaml
. Then I undid the syntax error.
Still status code 404 (expected)
I temporarily edited default.hbs
to confirm whether I was editing in the right place and the edits to that file are reflected into the html the browser receives.
Why isnāt my custom tags page working and itās showing status code 404? I will want it to be dynamic later on. But, for now, I donāt handle data.