diff --git a/content/posts/emoji-support.md b/content/posts/emoji-support.md index dc3589ad..ed94c92d 100644 --- a/content/posts/emoji-support.md +++ b/content/posts/emoji-support.md @@ -8,9 +8,11 @@ tags = [ ] +++ -Emoji can be enabled in a Hugo project in a number of ways. +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). + +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. @@ -19,17 +21,18 @@ To enable emoji globally, set `enableEmoji` to `true` in your site's [configurat The [Emoji cheat sheet](http://www.emoji-cheat-sheet.com/) is a useful reference for emoji shorthand codes. -*** +--- **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 >}} .emoji { - font-family: Apple Color Emoji, Segoe UI Emoji, NotoColorEmoji, Segoe UI Symbol, Android Emoji, EmojiSymbols; +font-family: Apple Color Emoji, Segoe UI Emoji, NotoColorEmoji, Segoe UI Symbol, Android Emoji, EmojiSymbols; } {{< /highlight >}} {{< css.inline >}} + + {{< /css.inline >}} diff --git a/content/posts/markdown-syntax.l2.md b/content/posts/markdown-syntax.l2.md index a106d831..af7079d9 100644 --- a/content/posts/markdown-syntax.l2.md +++ b/content/posts/markdown-syntax.l2.md @@ -21,6 +21,7 @@ weight = 2 +++ This article offers a sample of basic Markdown syntax that can be used in Hugo content files, also it shows whether basic HTML elements are decorated with CSS in a Hugo theme. + ## Headings @@ -28,10 +29,15 @@ This article offers a sample of basic Markdown syntax that can be used in Hugo c The following HTML `
Test
- + + +Test
+ ``` @@ -102,7 +108,9 @@ Tables aren't part of the core Markdown spec, but Hugo supports supports them ou