diff --git a/assets/sass/_code.scss b/assets/sass/_code.scss index 9e9abc3b..42f87e22 100644 --- a/assets/sass/_code.scss +++ b/assets/sass/_code.scss @@ -50,8 +50,6 @@ pre { background: #424546; } - - > code { color: white; max-width: 50rem; diff --git a/exampleSite/config.toml b/exampleSite/config.toml index f45943be..494bcccb 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -8,6 +8,9 @@ theme = "hugo-blog-awesome" googleAnalytics = '' # G-MEASUREMENT_ID +# Enable emojis globally +enableEmoji = true + # set markup.highlight.noClasses=false to enable code highlight [markup] [markup.highlight] diff --git a/exampleSite/content/posts/emoji-support.md b/exampleSite/content/posts/emoji-support.md index 0dccce61..4e699612 100644 --- a/exampleSite/content/posts/emoji-support.md +++ b/exampleSite/content/posts/emoji-support.md @@ -11,13 +11,11 @@ Emoji can be enabled in a Hugo project in a number of ways. The [`emojify`](https://gohugo.io/functions/emojify/) function can be called directly in templates or [Inline Shortcodes](https://gohugo.io/templates/shortcode-templates/#inline-shortcodes). -To enable emoji globally, set `enableEmoji` to `true` in your site's [configuration](https://gohugo.io/getting-started/configuration/) and then you can type emoji shorthand codes directly in content files; e.g. +To enable emoji globally, set `enableEmoji` to `true` in your site's `config.toml`. You can type emoji shorthand codes directly in content files; e.g. -:see_no_evil: -:hear_no_evil: -:speak_no_evil: +`:see_no_evil:` :see_no_evil: `:hear_no_evil:` :hear_no_evil: `:speak_no_evil:` :speak_no_evil: -I :heart: Hugo! +I :heart: Hugo! 😁 The [Emoji cheat sheet](http://www.emoji-cheat-sheet.com/) is a useful reference for emoji shorthand codes. @@ -25,7 +23,7 @@ The [Emoji cheat sheet](http://www.emoji-cheat-sheet.com/) is a useful reference **N.B.** The above steps enable Unicode Standard emoji characters and sequences in Hugo, however the rendering of these glyphs depends on the browser and the platform. To style the emoji you can either use a third party emoji font or a font stack; e.g. -{{< highlight html >}} +{{< highlight css >}} .emoji { font-family: Apple Color Emoji, Segoe UI Emoji, NotoColorEmoji, Segoe UI Symbol, Android Emoji, EmojiSymbols; }