diff options
| author | Danilo M. <danix@danix.xyz> | 2026-04-30 13:48:10 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-04-30 14:02:26 +0200 |
| commit | 52f7cd4c0cf0d9ce25db21fe6efe88655e176a93 (patch) | |
| tree | 176df988af15f39b0434716aeee497a42b3cc810 | |
| parent | aacaba7dafea382f615565bbeacb721a7f62ccf8 (diff) | |
| download | danixxyz-theme-52f7cd4c0cf0d9ce25db21fe6efe88655e176a93.tar.gz danixxyz-theme-52f7cd4c0cf0d9ce25db21fe6efe88655e176a93.zip | |
feat: load Twemoji CDN and init script on article pages
| -rw-r--r-- | layouts/_default/baseof.html | 7 |
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 }} |
