mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-29 23:20:49 +03:00
Merge commit 'ba45da9d03
'
This commit is contained in:
commit
c0370e0ee3
201 changed files with 471 additions and 205 deletions
|
@ -10,7 +10,7 @@ categories: [functions]
|
|||
menu:
|
||||
docs:
|
||||
parent: "functions"
|
||||
#tags: []
|
||||
keywords: []
|
||||
signature: ["index COLLECTION INDEX", "index COLLECTION KEY"]
|
||||
workson: []
|
||||
hugoversion:
|
||||
|
@ -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]
|
||||
```
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue