mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-13 20:14:58 +00:00
added "eq" function to docs.
This commit is contained in:
1 parent
df489b4712
commit
012a473e27
1 file changed
+6
@@ -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.
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user