Fixing the taxonomy example. Fixed #318. - hugo - [fork] hugo port for 9front
(HTM) git clone git@git.drkhsh.at/hugo.git
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Submodules
(DIR) README
(DIR) LICENSE
---
(DIR) commit 6f9f93f34ba71c28e8ad11c4384e22562e8f285d
(DIR) parent d3646aaac0f7b5705682a3c57e5e236e51ad558f
(HTM) Author: spf13 <steve.francia@gmail.com>
Date: Fri, 29 Aug 2014 23:39:55 -0400
Fixing the taxonomy example. Fixed #318.
Diffstat:
M docs/content/taxonomies/displaying… | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
(DIR) diff --git a/docs/content/taxonomies/displaying.md b/docs/content/taxonomies/displaying.md
@@ -90,8 +90,8 @@ The following example displays all tag keys:
### Example
<ul id="all-tags">
- {{ range .Site.Taxonomies.tags }}
- <li><a href="/tags/{{ .Name | urlize }}">{{ .Name }}</a></li>
+ {{ range $name, $taxonomy := .Site.Taxonomies.tags }}
+ <li><a href="/tags/{{ $name | urlize }}">{{ $name }}</a></li>
{{ end }}
</ul>