From c8f1a2d2f6660434cb802396e26596d487af8d8e Mon Sep 17 00:00:00 2001 From: Sean Shao Date: Tue, 19 Sep 2017 21:33:25 +0800 Subject: [PATCH] Correct code example for index template function typo in example code {{ index .Site.Data.locations .Params.location }} --- content/functions/index-function.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/functions/index-function.md b/content/functions/index-function.md index 511844fb6..a0e0ff89c 100644 --- a/content/functions/index-function.md +++ b/content/functions/index-function.md @@ -71,7 +71,7 @@ This is where the `index` function is needed. `index` takes 2 parameters in this The variable for `.Params.location` is a string and can therefore replace `oslo` in the example above: ``` -{{ index .Site.Data.authors .Params.author }} +{{ index .Site.Data.locations .Params.location }} => map[website:https://www.oslo.kommune.no pop_city:658390 pop_metro:1717900] ```