projects
/
brevno-suite
/
hugo
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
df489b4
)
added "eq" function to docs.
author
Daniel Fairhead
<daniel.fairhead@om.org>
Tue, 9 Sep 2014 13:26:51 +0000
(14:26 +0100)
committer
spf13
<steve.francia@gmail.com>
Thu, 11 Sep 2014 21:02:20 +0000
(17:02 -0400)
docs/content/templates/functions.md
patch
|
blob
|
history
diff --git
a/docs/content/templates/functions.md
b/docs/content/templates/functions.md
index 9f17ba8fe65b2fdc20c69d61139cde0482209e29..b84a4ff3507683fa65e5c164f260e5d5487fa79f 100644
(file)
--- a/
docs/content/templates/functions.md
+++ b/
docs/content/templates/functions.md
@@
-35,6
+35,12
@@
If parameter is set, then echo it.
e.g. {{echoParam .Params "project_url" }}
+### eq
+Return true if the parameters are equal.
+
+e.g.
+ {{ if eq .Section "blog" }}current{{ end}}"
+
### first
Slices an array to only the first X elements.