I have an archetypes for talks with some content like this on archetypes/talk.md:
links:
- icon: images
icon_pack: fas
name: slides
url:
- icon: github
icon_pack: fab
name: code
url:
- icon: youtube
icon_pack: fab
name: video
url:
However, the generate talk using this template loses the "- " in front of the icon. It ends up like this:
links:
icon: images
icon_pack: fas
name: slides
url: ~
icon: github
icon_pack: fab
name: code
url: ~
icon: youtube
icon_pack: fab
name: video
url: ~
But this is invalid yaml as there are duplicated map keys and the content with tabs has been indented the same as icon.
Is there a way to escape this? I tried adding it like this [icon: youtube] adding more indentation, escaping it with \- and \--, but all these fail for one reason or another . I haven't found how to write the right format on the official documentation from Hugo or blogdown (where the only documentation of this is on templates but I couldn't find anything about how to write them).
Thanks