mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
added "eq" function to docs.
This commit is contained in:
parent
df489b4712
commit
012a473e27
1 changed files with 6 additions and 0 deletions
|
@ -35,6 +35,12 @@ If parameter is set, then echo it.
|
||||||
|
|
||||||
e.g. {{echoParam .Params "project_url" }}
|
e.g. {{echoParam .Params "project_url" }}
|
||||||
|
|
||||||
|
### eq
|
||||||
|
Return true if the parameters are equal.
|
||||||
|
|
||||||
|
e.g.
|
||||||
|
{{ if eq .Section "blog" }}current{{ end}}"
|
||||||
|
|
||||||
### first
|
### first
|
||||||
Slices an array to only the first X elements.
|
Slices an array to only the first X elements.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue