From d607f4c7dfbed4e907692486e48502e7f81c9aeb Mon Sep 17 00:00:00 2001 From: Thijs de Zoute Date: Wed, 17 Feb 2016 13:36:28 +0100 Subject: [PATCH] Docs: fix small typos in functions.md --- docs/content/templates/functions.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/content/templates/functions.md b/docs/content/templates/functions.md index f5b254a7c..67537c70c 100644 --- a/docs/content/templates/functions.md +++ b/docs/content/templates/functions.md @@ -715,7 +715,7 @@ This works, but the complexity of "post/tag/list.html" is fairly high; the Hugo 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). - {{ with.Params.tags }} + {{ with .Params.tags }}
Tags: {{ $sort := sort . }} @@ -728,7 +728,7 @@ This is Hugo. We have a better way. If this were your "post/tag/list.html" inste 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: - {{ with.Params.tags }} + {{ with .Params.tags }}
Tags: {{ delimit (apply (apply (sort .) "partial" "post/tag/link" ".") "chomp" ".") ", " }}