mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-23 02:41:50 +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
215 B
YAML
12 lines
215 B
YAML
routes:
|
|
|
|
collections:
|
|
/:
|
|
permalink: '{globals.permalinks}' # special 1.0 compatibility setting. See the docs for details.
|
|
template:
|
|
- index
|
|
|
|
taxonomies:
|
|
tag: /tag/{slug}/
|
|
author: /author/{slug}/
|