diff options
author | Dillon <dillonzq@outlook.com> | 2020-04-26 21:27:26 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-26 21:27:26 +0300 |
commit | b46c81053f7a4307945b82bee6944af7e6e13d1c (patch) | |
tree | bd571b2331ed6d4215a1fbd0f924eea617e064b0 /layouts | |
parent | fc46fba6aa1a747d19c9d0b37b0a26e944cfbba3 (diff) |
feat(twemoji): add support for twemoji (#264)
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/partials/assets.html | 7 |
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" -}} |