From 50fe5d104555a4b64e2e0aade41f2d510a88063f Mon Sep 17 00:00:00 2001 From: Track3 Date: Sat, 1 Dec 2018 13:24:28 +0800 Subject: [PATCH] Add shorthand emoji support by default * Add enableEmoji option in example config.toml * Update the demo content * Closes #7 --- exampleSite/config.toml | 1 + exampleSite/content/posts/typography.md | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 7ba5c78..683622a 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -8,6 +8,7 @@ pygmentsUseClasses = true hasCJKLanguage = true # If there're Chinese/Japanese/Korean Languages in the content, enable this. rssLimit = 10 # Maximum number of items in the RSS feed. copyright = "This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License." # This message is only used by the RSS template. +enableEmoji = true # Shorthand emojis in content files - https://gohugo.io/functions/emojify/ # googleAnalytics = "UA-123-45" # disqusShortname = "yourdiscussshortname" diff --git a/exampleSite/content/posts/typography.md b/exampleSite/content/posts/typography.md index f47b797..94f469b 100644 --- a/exampleSite/content/posts/typography.md +++ b/exampleSite/content/posts/typography.md @@ -16,7 +16,7 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor i Inline styles: -**strong**, *emphasis*, ***strong and emphasis***,`code`, underline, ~~strikethrough~~, :haha:, $\LaTeX$, X^2^, H~2~O, ==highlight==, [Link](https://example.com), and image: +**strong**, *emphasis*, ***strong and emphasis***,`code`, underline, ~~strikethrough~~, :joy:🤣, $\LaTeX$, X^2^, H~2~O, ==highlight==, [Link](https://example.com), and image: ![img](https://picsum.photos/600/400/?random)