Browse Source

feat: add support for emoji lists

With new `emoji_list` shortcode. For example:

```
{{% emoji_list %}}
- 🔥 sdf
  - 🔥 sdf
- 🔥 sdf
{{% /emoji_list %}}
```
George Cushen 4 years ago
parent
commit
211d8b330b

+ 5 - 0
test/config.yaml

@@ -6,6 +6,11 @@ module:
     - path: github.com/wowchemy/wowchemy-hugo-modules/wowchemy
 outputs:
   home: [HTML, RSS, JSON, WebAppManifest, headers, redirects]
+markup:
+  defaultMarkdownHandler: goldmark
+  goldmark: {renderer: {unsafe: true}}
+  highlight: {codeFences: false}
+  tableOfContents: {startLevel: 2, endLevel: 3}
 disableAliases: true
 taxonomies: []
 params:

+ 1 - 0
wowchemy-cms/README.md

@@ -26,6 +26,7 @@ Built upon the open source [Netlify CMS](https://www.netlifycms.org/) and [Netli
      - wowchemycms_config
      - HTML
    ---
+
    ```
 
 3. (Optional) If your Git repository's branch is **not** `main`, define it in `config/_default/params.toml`:

+ 4 - 0
wowchemy/assets/scss/wowchemy/_base.scss

@@ -117,6 +117,10 @@ ul.task-list li input[type='checkbox'] {
   margin-right: 0.5rem;
 }
 
+.emoji-list ul {
+  list-style-type: none;
+}
+
 /* Navigation bar text */
 .navbar-light {
   font-family: $sta-font-nav, sans-serif;

+ 1 - 0
wowchemy/layouts/shortcodes/emoji_list.html

@@ -0,0 +1 @@
+<div class="emoji-list">{{ .Inner }}</div>