mirror of
https://github.com/jakejarvis/hugo-mod-twemoji.git
synced 2026-10-18 13:53:28 -04:00
mount twemoji.min.js as an asset instead of static file, and get as resource in partial
This commit is contained in:
5 files changed
+13
-12
No files matched your search
@@ -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