willfaught/paige

social links are not shown

goern opened this issue · 1 comments

goern commented

follow up of #12 (reply in thread)

By the way, where is coming from?

I dont know... then I found https://discourse.gohugo.io/t/raw-html-omitted-in-templates/43375/8

and added

markup:
  goldmark:
    renderer:
      unsafe: true

to config.yaml, now it works. I was not aware that I need to have that set.

/kind documentation

Ah, makes sense. I've had unsafe set to true for a long time, so I'm unfamiliar with what happens when it's not true.

Unsafe is a Hugo configuration, not a Paige one. You can't put raw HTML into Markdown in Hugo without setting unsafe to true. There's an example of setting it to true in the example site.

I try to avoid duplicating Hugo documentation here as much as possible, aside from the "getting started" sections in the readme. Since it technically introduces a security concern, I don't actively advise people to do it.