hugo-theme-learn icon indicating copy to clipboard operation
hugo-theme-learn copied to clipboard

Icons from content files not working

Open fUE4 opened this issue 5 years ago • 5 comments

missingIcons

What I did:

  1. new Site
  2. copied static, layouts and content folder from example site to root directory
  3. customized the config.toml

Result: Everything works fine, except the Icons as shown in the image.

What could be the problem here?

fUE4 avatar Jan 16 '20 09:01 fUE4

It's missing on the demo page also:

https://themes.gohugo.io//theme/hugo-theme-learn/en/cont/icons/

fUE4 avatar Jan 18 '20 12:01 fUE4

It's because they added Goldmark as default renderer in Hugo 0.60.0.
Icons are being added via html tags in markdown.

You have two alternatives now:

  1. Allow unsafe in your config.toml
[markup]
    [markup.goldmark]
        [markup.goldmark.renderer]
            unsafe = true
  1. use blackfriday (the previous) as your default renderer
[markup]
    defaultMarkdownHandler = "blackFriday"

see documentation

mirisbowring avatar Jan 18 '20 14:01 mirisbowring

Thank you. Working fine now.

fUE4 avatar Jan 18 '20 19:01 fUE4

Reopening because this is a regression

matalo33 avatar Feb 12 '20 17:02 matalo33

I am facing the same issue with, for now I have fixed using "blackFriday" render

ldebello-ddl avatar May 24 '22 22:05 ldebello-ddl