I don’t know what’s going on with my setup.
I have these versions:
$ go version
go version go1.22.5 linux/amd64
$ hugo version
hugo v0.129.0-e85be29867d71e09ce48d293ad9d1f715bc09bb9+extended linux/amd64 BuildDate=2024-07-17T13:29:16Z VendorInfo=gohugoio
config.toml markup settings:
[markup]
defaultMarkdownHandler = "goldmark"
unsafe=true
noClasses=false
angledQuotes = false
[markup.goldmark]
[markup.goldmark.parser]
autoHeadingID = true
[markup.goldmark.parser.attribute]
block = true
title = true
[markup.goldmark.parser.newline]
hardLineBreak = true
All nice samples described by multiple sources as working, like this:
---
dimensions:
width: "3 metres"
height: "8 metres"
---
-don’t work in my setup - they are just invisible.
The sample offered by jmooring is not read by my setup altogether - it is invisible:
myvar: |
Lorem ipsum dolor sit amet, consectetur adipiscing elit:
- Cras condimentum vestibulum accumsan.
- Duis nibh mauris, fringilla in sapien at, rutrum condimentum est.
- Sed porttitor urna metus, a efficitur justo volutpat sit amet
However I’ve found an online YAML editor at
‘YAML Editor Online’
and this sample:
dimensions:
width: "3 metres"
height: "8 metres"
works there very well!
I’d love to have that result on my screen!
The sample offered by jmooring as is doesn’t work there as well, but starts working fine if the “|” operator is removed:
myvar:
Lorem ipsum dolor sit amet, consectetur adipiscing elit:
- Cras condimentum vestibulum accumsan.
- Duis nibh mauris, fringilla in sapien at, rutrum condimentum est.
- Sed porttitor urna metus, a efficitur justo volutpat sit amet
I think my setup is misconfigured. I should find a sample config file.