From 0e95e3e3c4d13733faf26942fa11d968bd681be9 Mon Sep 17 00:00:00 2001 From: Queensferry Date: Fri, 1 Apr 2022 10:48:29 +0800 Subject: chore: add `.editorconfig` --- .editorconfig | 13 +++++++++++++ exampleSite/content/post/emoji-support.md | 4 ++-- 2 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..40d4128 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,13 @@ +[*] +charset = utf-8 +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true + +[*.{html,xml}] +indent_size = 2 +indent_style = space + +[*.md] +# https://github.com/editorconfig/editorconfig-vscode/issues/153 +trim_trailing_whitespace = false diff --git a/exampleSite/content/post/emoji-support.md b/exampleSite/content/post/emoji-support.md index f17f49a..dc3589a 100644 --- a/exampleSite/content/post/emoji-support.md +++ b/exampleSite/content/post/emoji-support.md @@ -8,9 +8,9 @@ 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. -- cgit v1.2.3