From: Cameron Moore Date: Wed, 9 Mar 2016 20:56:54 +0000 (-0600) Subject: docs: add better default example X-Git-Tag: v0.16~265 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=0743646f;p=brevno-suite%2Fhugo docs: add better default example --- diff --git a/docs/content/templates/functions.md b/docs/content/templates/functions.md index bbc81227..f719ec42 100644 --- a/docs/content/templates/functions.md +++ b/docs/content/templates/functions.md @@ -36,7 +36,7 @@ non-nil for any other types. e.g. - {{ .Params.font | default "Roboto" }} → default is "Roboto" + {{ index .Params "font" | default "Roboto" }} → default is "Roboto" {{ default "Roboto" .Params.font }} → default is "Roboto" ### delimit