summaryrefslogtreecommitdiffstats
path: root/layouts/_default/baseof.html
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-04-30 13:48:10 +0200
committerDanilo M. <danix@danix.xyz>2026-04-30 14:02:26 +0200
commit52f7cd4c0cf0d9ce25db21fe6efe88655e176a93 (patch)
tree176df988af15f39b0434716aeee497a42b3cc810 /layouts/_default/baseof.html
parentaacaba7dafea382f615565bbeacb721a7f62ccf8 (diff)
downloaddanixxyz-theme-52f7cd4c0cf0d9ce25db21fe6efe88655e176a93.tar.gz
danixxyz-theme-52f7cd4c0cf0d9ce25db21fe6efe88655e176a93.zip
feat: load Twemoji CDN and init script on article pages
Diffstat (limited to 'layouts/_default/baseof.html')
-rw-r--r--layouts/_default/baseof.html7
1 files changed, 7 insertions, 0 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 482006e..e357e66 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -107,6 +107,13 @@
<script src="{{ $codeScript.RelPermalink }}"></script>
{{ end }}
+ <!-- Twemoji: consistent cross-platform emoji rendering on article pages -->
+ {{ if eq .Kind "page" }}
+ <script src="https://cdn.jsdelivr.net/npm/twemoji@14.1.2/dist/twemoji.min.js" crossorigin="anonymous"></script>
+ {{ $twemojiScript := resources.Get "js/twemoji-init.js" | minify }}
+ <script src="{{ $twemojiScript.RelPermalink }}"></script>
+ {{ end }}
+
<!-- Matrix rain background effect -->
{{ with resources.Get "js/matrix-rain.js" }}
{{ $s := . | minify }}