willfaught / paige

Powerful, pliable pixel perfection. An advanced Hugo theme.
https://willfaught.com/paige
MIT License
232 stars 50 forks source link

social links are not shown #17

Closed goern closed 1 year ago

goern commented 1 year ago

follow up of https://github.com/willfaught/paige/discussions/12#discussioncomment-5411805

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

willfaught commented 1 year ago

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.