Skip to content

Commit

Permalink
Update Params.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jmooring authored Dec 12, 2023
1 parent e00c4ee commit cdbe19b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions content/en/methods/page/Params.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ With this front matter:
title = 'Annual conference'
date = 2023-10-17T15:11:37-07:00
display_related = true
event-date = '2023'
[params.author]
email = '[email protected]'
name = 'John Smith'
Expand All @@ -36,8 +35,9 @@ Access the custom parameters by [chaining] the [identifiers]:
In the template example above, each of the keys is a valid identifier. For example, none of the keys contains a hyphen. To access a key that is not a valid identifier, use the [`index`] function:

```go-html-template
{{ index .Params "event-date" }} → 2023
{{ index .Params "key-with-hyphens" }} → 2023
```

[`index`]: /functions/collections/indexfunction
[chaining]: /getting-started/glossary/#chain
[identifiers]: /getting-started/glossary/#identifier

0 comments on commit cdbe19b

Please sign in to comment.