You've already forked hugo-mod-twemoji
mirror of
https://github.com/jakejarvis/hugo-mod-twemoji.git
synced 2025-06-27 14:25:41 -04:00
mount twemoji.min.js as an asset instead of static file, and get as resource in partial
This commit is contained in:
@ -1,2 +1,3 @@
|
||||
<script src="{{ "twemoji/js/twemoji.min.js" | absURL }}"></script>
|
||||
<script>twemoji.parse(document.body,{{ dict "base" ("/twemoji/" | absURL) "folder" "svg" "ext" ".svg" | jsonify | safeJS }})</script>
|
||||
{{ $twemoji := resources.Get "js/twemoji.min.js" }}
|
||||
<script src="{{ $twemoji.Permalink }}"></script>
|
||||
<script>twemoji.parse(document.body,{{ dict "base" ("twemoji/" | absURL) "folder" "svg" "ext" ".svg" | jsonify | safeJS }})</script>
|
||||
|
Reference in New Issue
Block a user