1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-19 12:35:31 -04:00

prevent Hugo's auto-escaping of base URL in twemoji JS

This commit is contained in:
2020-03-30 13:01:47 -04:00
parent 5a380a8a72
commit fa018564e5
2 changed files with 2 additions and 2 deletions

View File

@@ -1,2 +1,2 @@
<script src="{{ "/twemoji/twemoji.min.js" | absURL }}"></script>
<script>twemoji.parse(document.body,{base:'{{ "/" | absURL }}',folder:'twemoji/svg',ext:'.svg'})</script>
<script>twemoji.parse(document.body,{{ dict "base" ("/" | absURL) "folder" "twemoji/svg" "ext" ".svg" | jsonify | safeJS }})</script>