mount twemoji.min.js as an asset instead of static file, and get as resource in partial

This commit is contained in:
jake committed 2020-04-13 15:48:19 -04:00
1 parent ede8c23576
commit cf01973921
5 files changed
+13 -12

No files matched your search

+3 -2
View File
@@ -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>