hugo/docs/content/templates
Tatsushi Demachi fa8ac87d5e Make 'where' template function accepts dot chaining key argument
'where' template function used to accept only each element's struct
field name, method name and map key name as its second argument. This
extends it to accept dot chaining key like 'Params.foo.bar' as the
argument. It evaluates sub elements of each array elements and checks it
matches the third argument value.

Typical use case would be for filtering Pages by user defined front
matter value. For example, to filter pages which have 'Params.foo.bar'
and its value is 'baz', it is used like

    {{ range where .Data.Pages "Params.foo.bar" "baz" }}
        {{ .Content }}
    {{ end }}

It ignores all leading and trailing dots so it can also be used with
".Params.foo.bar"
2014-12-29 12:53:41 +01:00
..
404.md Docs: Minor copyediting/proofreading 2014-12-08 22:44:30 +01:00
content.md Correct alias 2014-12-03 09:17:45 +01:00
functions.md Make 'where' template function accepts dot chaining key argument 2014-12-29 12:53:41 +01:00
go-templates.md Minor proofreading corrections to Hugo docs 2014-10-15 12:18:20 -04:00
homepage.md More proofreading and minor revisions to Hugo docs 2014-09-08 11:41:10 -04:00
list.md Correct path in theme search order 2014-11-24 17:24:39 -05:00
overview.md Minor proofreading corrections to Hugo docs 2014-09-01 08:19:40 -04:00
partials.md More proofreading and minor revisions to Hugo docs 2014-09-08 11:41:10 -04:00
rss.md Switch to new hompage 2014-10-02 13:39:59 -04:00
sitemap.md Docs: Minor copyediting/proofreading 2014-12-08 22:44:30 +01:00
terms.md More proofreading and minor revisions to Hugo docs 2014-09-08 11:41:10 -04:00
variables.md Documentation for ref and relref. 2014-12-18 22:18:37 -05:00
views.md Typo fix: "simple" → "simply" in templates/views.md 2014-12-24 16:58:28 -07:00