Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/uPagge/uBlogger.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDillon <dillonzq@outlook.com>2020-04-26 21:27:26 +0300
committerGitHub <noreply@github.com>2020-04-26 21:27:26 +0300
commitb46c81053f7a4307945b82bee6944af7e6e13d1c (patch)
treebd571b2331ed6d4215a1fbd0f924eea617e064b0 /layouts
parentfc46fba6aa1a747d19c9d0b37b0a26e944cfbba3 (diff)
feat(twemoji): add support for twemoji (#264)
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/assets.html7
1 files changed, 7 insertions, 0 deletions
diff --git a/layouts/partials/assets.html b/layouts/partials/assets.html
index 85c03eb..0cb4aa7 100644
--- a/layouts/partials/assets.html
+++ b/layouts/partials/assets.html
@@ -38,6 +38,13 @@
{{- $source := $cdn.lazysizesJS | default "lib/lazysizes/lazysizes.min.js" -}}
{{- dict "source" $source "fingerprint" $fingerprint | dict "scratch" $.Scratch "data" | partial "scratch/script.html" -}}
+{{- /* twemoji */ -}}
+{{- if $params.twemoji -}}
+ {{- $source := $cdn.twemojiJS | default "lib/twemoji/twemoji.min.js" -}}
+ {{- dict "source" $source "fingerprint" $fingerprint | dict "scratch" $.Scratch "data" | partial "scratch/script.html" -}}
+ {{- $config = dict "twemoji" true | merge $config -}}
+{{- end -}}
+
{{- /* lightgallery.js */ -}}
{{- if $params.lightgallery -}}
{{- $source := $cdn.lightgalleryCSS | default "lib/lightgallery/lightgallery.min.css" -}}