aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrack3 <pengliabc@live.cn>2018-12-01 13:24:28 +0800
committerTrack3 <pengliabc@live.cn>2018-12-01 13:24:28 +0800
commit50fe5d104555a4b64e2e0aade41f2d510a88063f (patch)
treeb96da7b2d1b49433ba04ea7f1c381f8f22625451
parent52d0c6942129aaed9313d4e4c78faf26baeabaaf (diff)
Add shorthand emoji support by default
* Add enableEmoji option in example config.toml * Update the demo content * Closes #7
-rw-r--r--exampleSite/config.toml1
-rw-r--r--exampleSite/content/posts/typography.md2
2 files changed, 2 insertions, 1 deletions
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`, <u>underline</u>, ~~strikethrough~~, :haha:, $\LaTeX$, X^2^, H~2~O, ==highlight==, [Link](https://example.com), and image:
+**strong**, *emphasis*, ***strong and emphasis***,`code`, <u>underline</u>, ~~strikethrough~~, :joy:🤣, $\LaTeX$, X^2^, H~2~O, ==highlight==, [Link](https://example.com), and image:
![img](https://picsum.photos/600/400/?random)