mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
make type-or-section more obvious
It took me a long time to realize that /layouts/TYPE or SECTION/LAYOUT.html was supposed to be a single URL and not two urls (/layouts/TYPE) or (SECTION/LAYOUT.html) ... putting in the hyphens I think makes it much more clear it's all one URL, and only the middle part is an either-or.
This commit is contained in:
parent
756be987d3
commit
29c45dd690
1 changed files with 4 additions and 4 deletions
|
@ -32,11 +32,11 @@ it will be used instead of `section`.
|
|||
|
||||
### Single
|
||||
|
||||
* /layouts/`TYPE` or `SECTION`/`LAYOUT`.html
|
||||
* /layouts/`TYPE` or `SECTION`/single.html
|
||||
* /layouts/`TYPE`-or-`SECTION`/`LAYOUT`.html
|
||||
* /layouts/`TYPE`-or-`SECTION`/single.html
|
||||
* /layouts/\_default/single.html
|
||||
* /themes/`THEME`/layouts/`TYPE` or `SECTION`/`LAYOUT`.html
|
||||
* /themes/`THEME`/layouts/`TYPE` or `SECTION`/single.html
|
||||
* /themes/`THEME`/layouts/`TYPE`-or-`SECTION`/`LAYOUT`.html
|
||||
* /themes/`THEME`/layouts/`TYPE`-or-`SECTION`/single.html
|
||||
* /themes/`THEME`/layouts/\_default/single.html
|
||||
|
||||
## Example Single Template File
|
||||
|
|
Loading…
Reference in a new issue