ref: d607f4c7dfbed4e907692486e48502e7f81c9aeb
parent: 3749dc76f7c174f740427cd8f706de1d26c80690
author: Thijs de Zoute <[email protected]>
date: Wed Feb 17 08:36:28 EST 2016
Docs: fix small typos in functions.md
--- a/docs/content/templates/functions.md
+++ b/docs/content/templates/functions.md
@@ -715,7 +715,7 @@
This is Hugo. We have a better way. If this were your "post/tag/list.html" instead, all of those problems are fixed automatically (this first version separates all of the operations for ease of reading; the combined version will be shown after the explanation).
<!-- post/tag/list.html -->
- {{ with.Params.tags }}
+ {{ with .Params.tags }}
<div class="tags-list">
Tags:
{{ $sort := sort . }}
@@ -728,7 +728,7 @@
In this version, we are now sorting the tags, converting them to links with "post/tag/link.html", cleaning off stray newlines, and joining them together in a delimited list for presentation. That can also be written as:
<!-- post/tag/list.html -->
- {{ with.Params.tags }}
+ {{ with .Params.tags }}
<div class="tags-list">
Tags:
{{ delimit (apply (apply (sort .) "partial" "post/tag/link" ".") "chomp" ".") ", " }}