What is the purpoe of the routes.yaml file that is located inside the theme folder. There doesn’t seem to be any effect if I change things there. Changes only happen when I edit the routes.yaml file in the settings folder. Is it there just as a reference ?
Hi @lallenfrancisl,
you’re right.
There is no purpose for the routes.yaml
file in the theme folder.
They are included in the theme folder to show you any existing routes within this theme.
Take the Lyra Theme for example:
The included routes file shows you the logic e.g (domain.com/signup/ takes me to the signup.hbs that lies in the members folder), so you don’t have to guess, how the theme is supposed to work:
routes:
/signup/: members/signup
/signin/: members/signin
/account/: members/account
collections:
/:
permalink: /{slug}/
template: index
taxonomies:
tag: /tag/{slug}/
author: /author/{slug}/
2 Likes
Thank you Daniel. I was confused seeing nothing happen
2 Likes