From: Daniel Fairhead Date: Tue, 9 Sep 2014 13:26:51 +0000 (+0100) Subject: added "eq" function to docs. X-Git-Tag: v0.13~417 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=012a473e27aee4a8bd6e7e7923d697a6c6b4b82c;p=brevno-suite%2Fhugo added "eq" function to docs. --- diff --git a/docs/content/templates/functions.md b/docs/content/templates/functions.md index 9f17ba8f..b84a4ff3 100644 --- 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.