mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-08 04:06:33 -04:00
Fix typo data-templates.md
This commit is contained in:
parent
0d3c2e2c32
commit
d9a4c66aef
@ -127,7 +127,7 @@ Achievements:
|
||||
You can use the following code to render the `Short Description` in your layout:
|
||||
|
||||
```go-html-template
|
||||
<div>Short Description of {{ .Site.Data.User0123.Name }}: <p>{{ index .Site.Data.User0123 "Short Description" | markdownify }}</p></div>
|
||||
<div>Short Description of {{ .Site.Data.user0123.Name }}: <p>{{ index .Site.Data.user0123 "Short Description" | markdownify }}</p></div>
|
||||
```
|
||||
|
||||
Note the use of the [`markdownify`] function. This will send the description through the Markdown rendering engine.
|
||||
|
Loading…
x
Reference in New Issue
Block a user