Bjørn Erik Pedersen
51dd462c39
layout: Respect Type and Layout for list template selection
...
This commit also has some other nice side-effects:
* The layout logic is unified for all page types, which should make it less surprising
* Page.Render now supports all types
* The legacy "indexes" type is removed from the template lookup order. This is an undocumented type from early Hugo days. This means that having a template in, say, `/layouts/indexes/list.html` will no longer work.
* The theme override logic is improved. As an example, an `index.html` in theme will now wn over a `_default/list.html` in the project, which most will expect.
Fixes #3005
Fixes #3245
2018-01-14 19:59:51 +01:00
..
2018-01-01 12:11:36 +01:00
2017-06-13 18:42:45 +02:00
2017-12-27 18:44:47 +01:00
2017-12-27 18:44:47 +01:00
2016-09-18 19:16:39 +02:00
2017-06-13 19:12:10 +02:00
2017-08-09 20:13:02 +02:00
2018-01-10 18:26:42 +01:00
2017-12-27 18:44:47 +01:00
2017-06-13 19:12:10 +02:00
2017-09-25 08:59:02 +02:00
2017-12-27 18:44:47 +01:00
2017-12-27 18:44:47 +01:00
2017-06-13 18:42:45 +02:00
2017-06-13 18:42:45 +02:00
2018-01-06 10:29:13 +01:00
2017-12-27 18:44:47 +01:00
2018-01-06 10:29:13 +01:00
2018-01-08 11:47:26 +01:00
2017-12-27 18:44:47 +01:00
2015-12-07 19:57:01 +01:00
2017-12-15 18:49:21 +01:00
2017-12-15 18:49:21 +01:00
2017-11-17 11:01:46 +01:00
2018-01-12 18:10:40 +01:00
2018-01-10 18:23:41 +01:00
2017-12-27 18:44:47 +01:00
2018-01-10 18:23:41 +01:00
2018-01-12 17:46:50 +01:00
2017-12-27 18:44:47 +01:00
2017-12-27 18:44:47 +01:00
2017-12-27 18:44:47 +01:00
2018-01-14 19:59:51 +01:00
2017-12-27 18:44:47 +01:00
2018-01-12 18:10:40 +01:00
2017-06-13 18:42:45 +02:00
2017-12-27 18:44:47 +01:00
2017-12-29 08:58:38 +01:00
2017-12-29 10:16:50 +01:00
2017-06-13 18:47:17 +02:00
2018-01-12 18:10:40 +01:00
2017-09-06 00:20:02 +02:00
2017-09-06 00:20:02 +02:00
2017-02-17 17:15:26 +01:00
2017-12-29 08:58:38 +01:00
2017-09-29 16:23:16 +02:00
2017-09-07 16:21:33 +02:00
2017-09-06 00:20:02 +02:00
2017-02-19 08:50:08 +01:00
2017-02-17 17:15:26 +01:00
2016-04-07 16:05:23 +02:00
2017-06-13 18:42:45 +02:00
2017-12-27 18:44:47 +01:00
2017-03-27 15:43:56 +02:00
2017-04-04 23:09:01 +02:00
2017-02-17 17:15:26 +01:00
2017-12-28 11:32:02 +01:00
2017-12-27 18:44:47 +01:00
2017-06-13 18:42:45 +02:00
2017-12-27 18:44:47 +01:00
2017-02-17 17:15:26 +01:00
2017-06-13 18:42:45 +02:00
2017-12-27 18:44:47 +01:00
2017-07-04 09:12:44 +02:00
2017-02-17 17:15:26 +01:00
2017-12-07 23:08:25 +01:00
2017-12-05 16:17:11 +01:00
2017-09-13 12:32:06 +02:00
2017-06-13 19:12:10 +02:00
2018-01-14 19:59:51 +01:00
2017-12-27 18:44:47 +01:00
2017-08-17 09:43:39 +02:00
2017-12-27 18:44:47 +01:00
2017-12-27 18:44:47 +01:00
2018-01-12 10:39:09 +01:00
2018-01-14 19:59:51 +01:00
2017-12-27 18:44:47 +01:00
2017-06-13 18:42:45 +02:00
2016-03-23 10:10:28 +01:00
2018-01-08 11:47:26 +01:00
2017-05-09 23:58:25 +02:00
2017-11-18 10:41:31 +01:00
2017-06-13 18:42:45 +02:00
2017-12-27 18:44:47 +01:00
2017-11-17 19:46:32 +01:00