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] ```