Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

social links are not shown #17

Closed
goern opened this issue Mar 27, 2023 · 1 comment
Closed

social links are not shown #17

goern opened this issue Mar 27, 2023 · 1 comment

Comments

@goern
Copy link

goern commented Mar 27, 2023

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

@willfaught
Copy link
Owner

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.

@goern goern closed this as completed Mar 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants