added "eq" function to docs. - hugo - [fork] hugo port for 9front
HTML git clone git@git.drkhsh.at/hugo.git
DIR Log
DIR Files
DIR Refs
DIR Submodules
DIR README
DIR LICENSE
---
DIR commit 012a473e27aee4a8bd6e7e7923d697a6c6b4b82c
DIR parent df489b4712dd59b097de0d2fb84cfac7a013f5cd
HTML Author: Daniel Fairhead <daniel.fairhead@om.org>
Date: Tue, 9 Sep 2014 14:26:51 +0100
added "eq" function to docs.
Diffstat:
M docs/content/templates/functions.md | 6 ++++++
1 file changed, 6 insertions(+), 0 deletions(-)
---
DIR diff --git 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.