From a0dbbddb272a0b52f0895783a337462f5ff90e58 Mon Sep 17 00:00:00 2001 From: Caleb Woodbine Date: Thu, 14 Dec 2023 09:26:06 +1300 Subject: [PATCH] chore: enable emoji for content MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit allow for things like :one: :two: :three:, transformed into 1️⃣ 2️⃣ 3️⃣ --- hugo.toml | 2 ++ themes/ii/layouts/_default/list.html | 2 +- themes/ii/layouts/_default/single.html | 4 ++-- themes/ii/layouts/contact/list.html | 2 +- themes/ii/layouts/index.html | 2 +- themes/ii/layouts/post/single.html | 4 ++-- themes/ii/layouts/projects/list.html | 6 +++--- themes/ii/layouts/team/list.html | 4 ++-- themes/ii/layouts/team/single.html | 4 ++-- 9 files changed, 16 insertions(+), 14 deletions(-) diff --git a/hugo.toml b/hugo.toml index 0850472..af16173 100644 --- a/hugo.toml +++ b/hugo.toml @@ -3,6 +3,8 @@ languageCode = 'en-us' title = 'ii' theme = "ii" +enableEmoji = true + [taxonomies] author = "authors" diff --git a/themes/ii/layouts/_default/list.html b/themes/ii/layouts/_default/list.html index 0d98587..31e260f 100644 --- a/themes/ii/layouts/_default/list.html +++ b/themes/ii/layouts/_default/list.html @@ -3,7 +3,7 @@

{{ .Title }}

- {{ .Content }} + {{ .Content | emojify }}
- {{ .Content }} + {{ .Content | emojify }}
-{{ end }} \ No newline at end of file +{{ end }} diff --git a/themes/ii/layouts/contact/list.html b/themes/ii/layouts/contact/list.html index 94f4fcd..442ed29 100644 --- a/themes/ii/layouts/contact/list.html +++ b/themes/ii/layouts/contact/list.html @@ -2,7 +2,7 @@

{{ .Title }}

- {{ .Content }} + {{ .Content | emojify }}
-{{ .Content }} +{{ .Content | emojify }}
{{ end }} diff --git a/themes/ii/layouts/post/single.html b/themes/ii/layouts/post/single.html index 4185402..38f65af 100644 --- a/themes/ii/layouts/post/single.html +++ b/themes/ii/layouts/post/single.html @@ -15,11 +15,11 @@

{{ .Title }}

- {{ .Content }} + {{ .Content | emojify }}
-{{ end }} \ No newline at end of file +{{ end }} diff --git a/themes/ii/layouts/projects/list.html b/themes/ii/layouts/projects/list.html index 424ae79..445267b 100644 --- a/themes/ii/layouts/projects/list.html +++ b/themes/ii/layouts/projects/list.html @@ -4,14 +4,14 @@

{{ .Title }}

- {{ .Content }} + {{ .Content | emojify }}
-{{ end }} \ No newline at end of file +{{ end }} diff --git a/themes/ii/layouts/team/list.html b/themes/ii/layouts/team/list.html index 6f3d825..ebd4812 100644 --- a/themes/ii/layouts/team/list.html +++ b/themes/ii/layouts/team/list.html @@ -11,10 +11,10 @@

Our Team

- {{ .Content }} + {{ .Content | emojify }}
{{ end }} -{{ end }} \ No newline at end of file +{{ end }} diff --git a/themes/ii/layouts/team/single.html b/themes/ii/layouts/team/single.html index 523741f..3a6dc04 100644 --- a/themes/ii/layouts/team/single.html +++ b/themes/ii/layouts/team/single.html @@ -12,7 +12,7 @@

{{ .Title }}

- {{ .Content }} + {{ .Content | emojify }}

Posts

@@ -35,4 +35,4 @@

Posts

← back to posts -{{ end }} \ No newline at end of file +{{ end }}