mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-26 22:04:32 +02:00
Docs: fix small typos in functions.md
This commit is contained in:
committed by
digitalcraftsman
parent
3749dc76f7
commit
d607f4c7df
@@ -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).
|
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 -->
|
<!-- post/tag/list.html -->
|
||||||
{{ with.Params.tags }}
|
{{ with .Params.tags }}
|
||||||
<div class="tags-list">
|
<div class="tags-list">
|
||||||
Tags:
|
Tags:
|
||||||
{{ $sort := sort . }}
|
{{ $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:
|
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 -->
|
<!-- post/tag/list.html -->
|
||||||
{{ with.Params.tags }}
|
{{ with .Params.tags }}
|
||||||
<div class="tags-list">
|
<div class="tags-list">
|
||||||
Tags:
|
Tags:
|
||||||
{{ delimit (apply (apply (sort .) "partial" "post/tag/link" ".") "chomp" ".") ", " }}
|
{{ delimit (apply (apply (sort .) "partial" "post/tag/link" ".") "chomp" ".") ", " }}
|
||||||
|
Reference in New Issue
Block a user