mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-22 18:31:57 +03:00
5a61f99467
refs #9601 - the home.hbs behaviour for the index collection (`/`) is hardcoded in Ghost - we would like to migrate all existing routes.yaml files - we only replace the file if the contents of the routes.yaml file equals the old routes.yaml format (with home.hbs as template) - updated README of settings folder - if we don't remove the home.hbs template from the default routes.yaml file, home.hbs will be rendered for any page of the index collection - the backwards compatible behaviour was different - only render home.hbs for page 1 - remember: the default routes.yaml file reflects how Ghost was working without dynamic routing
12 lines
152 B
YAML
12 lines
152 B
YAML
routes:
|
|
|
|
collections:
|
|
/:
|
|
permalink: '{globals.permalinks}'
|
|
template:
|
|
- index
|
|
|
|
taxonomies:
|
|
tag: /tag/{slug}/
|
|
author: /author/{slug}/
|