Hugo How to use emoticons in Markdown

Introduction

Sometime a small emoticon brings a bit of fun. So far I haven’t used them in my blogs but it is time to try!

Hugo ressources

Hugo shows it is supporting emoticons in markdown : Hugo Emoticons It seems simple, and it is simple to enable. But … There is something that really needs attention : editing the config.toml file.

Editing config.toml

There is just a simple line to add in the toml file :

1
enableEmoji = true

But where in the file ? The answer is simple, at the top. My mistake was that I added it in the markup section, and it wasnt working.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
baseURL = 'https://fhanotes.netlify.app/'
languageCode = 'en-us'
title = 'Tech-Notes'
theme = "minimal-bootstrap-hugo-theme"
enableEmoji = true

[taxonomies]
  tag = "tags"
  category = "categories"
  ...

Emoticons

Now 😄 the emoticons are showing. By using smile code between 2 :, 😄 will show.

List of Emoticons with their codes can be found at Emoticon CheatList 🥶 🍀

Conclusion

So simple !

I ❤️ Hugo !

References