shithub: hugo

Download patch

ref: 0743646f3232b55b4df2690cbb11682794884243
parent: ce9ee3cf490ab5485b6ad7aa7a47d9fa9d176fa3
author: Cameron Moore <moorereason@gmail.com>
date: Wed Mar 9 09:56:54 EST 2016

docs: add better default example

--- a/docs/content/templates/functions.md
+++ b/docs/content/templates/functions.md
@@ -36,7 +36,7 @@
 
 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