summaryrefslogtreecommitdiffstats
path: root/docs/content/en/functions/index-function.md
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2020-06-16 14:19:31 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2020-06-16 14:19:31 +0200
commit0a9172672a7f2ed85cf675c96bd01b64641256bb (patch)
treeed778850d877a411838ae53f0385de0c68b32465 /docs/content/en/functions/index-function.md
parent6408c1cbc87f03fc9e92471165886ddbe7cdbeae (diff)
parentefa74c5c6e6ff1daddeb5834ea7c69bed2acf171 (diff)
downloadhugo-0a9172672a7f2ed85cf675c96bd01b64641256bb.tar.gz
hugo-0a9172672a7f2ed85cf675c96bd01b64641256bb.zip
Merge commit 'efa74c5c6e6ff1daddeb5834ea7c69bed2acf171'
Diffstat (limited to 'docs/content/en/functions/index-function.md')
-rw-r--r--docs/content/en/functions/index-function.md3
1 files changed, 0 insertions, 3 deletions
diff --git a/docs/content/en/functions/index-function.md b/docs/content/en/functions/index-function.md
index 94b9b4191..88dec29dc 100644
--- a/docs/content/en/functions/index-function.md
+++ b/docs/content/en/functions/index-function.md
@@ -38,8 +38,6 @@ The function takes multiple indices as arguments, and this can be used to get ne
{{ index $map "c" "e" }} => 20
```
-
-
## Example: Load Data from a Path Based on Front Matter Params
Assume you want to add a `location = ""` field to your front matter for every article written in `content/vacations/`. You want to use this field to populate information about the location at the bottom of the article in your `single.html` template. You also have a directory in `data/locations/` that looks like the following:
@@ -93,4 +91,3 @@ Now the call will return the specific file according to the location specified i
{{ (index .Site.Data.locations .Params.location).pop_city }}
=> 658390
```
-