shithub: hugo

Download patch

ref: 29c45dd690eb0736e4c70c4a3e18a49349aed3c8
parent: 756be987d3746cc9605f2ccddfe9edc55d63f9ac
author: Nate Finch <[email protected]>
date: Sun Aug 3 02:53:48 EDT 2014

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.

--- a/docs/content/templates/content.md
+++ b/docs/content/templates/content.md
@@ -32,11 +32,11 @@
 
 ### 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