1
0
mirror of https://github.com/gohugoio/hugo.git synced 2024-05-11 05:54:58 +00:00

10 Commits

Author SHA1 Message Date
ae3fa349de output: Fix build
See #4484
2018-03-09 17:28:20 +01:00
64cec07293 outputs: Adjust the layout examples 2018-03-09 13:26:28 +01:00
07700aab0d output: Add some more layout docshelper variants 2018-01-19 11:39:34 +01:00
a39ae4bb07 output: Redo the docshelper layouts examples 2018-01-18 10:16:21 +01:00
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
12e0495203 docs: Add RSS template lookup example 2017-07-22 15:05:43 +02:00
aa6b1b9be7 output: Support templates per site/language
This applies to both regular templates and shortcodes. So, if the site language is French and the output format is AMP, this is the (start) of the lookup order for the home page:

1. index.fr.amp.html
2. index.amp.html
3. index.fr.html
4. index.html
5. ...

Fixes #3360
2017-07-04 09:12:44 +02:00
d8717cd4c7 all: Update import paths to gohugoio/hugo 2017-06-13 18:42:45 +02:00
10287263f5 output: Fix output format mixup in example
See #3481
2017-05-18 21:37:29 +03:00
3c405f5172 all: Document the Output Formats feature
This commit also adds a new command, docshelper, with some utility funcs that adds a JSON datafiles to /docs/data that would be a pain to create and maintain by hand.

Fixes #3242
2017-04-07 10:52:16 +02:00