zjedi / hugo-scroll

Clean, responsive, single-page Hugo website theme.
https://themes.gohugo.io/hugo-scroll/
MIT License
256 stars 187 forks source link

Add support to markdown emojis #184

Closed filippofontana closed 1 month ago

filippofontana commented 1 month ago

This pull request aims to add support to markdown emojis in the theme.

With the current version, adding emoticons with the markdown shortcodes ends with them not rendered in the web page.

image

Adding enableEmoji = true in config.toml is a starting point but you can't insert emoticons in sections titles because they are rendered separately, thus also the emojify function is required (see docs for further reference) in the index.html file.

With these two updates, the final result is the following:

image