mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-07-19 04:35:31 -04:00
prevent Hugo's auto-escaping of base URL in twemoji JS
This commit is contained in:
@@ -10,8 +10,8 @@
|
||||
{{ block "main" . }}{{ end }}
|
||||
</div>
|
||||
{{ partialCached "page/footer" . }}
|
||||
{{ partial "scripts/twemoji" . }}
|
||||
{{ partial "scripts/shortcodes" . }}
|
||||
{{ partial "scripts/twemoji" . }}
|
||||
{{ if eq hugo.Environment "production" }}
|
||||
{{ partialCached "scripts/simple_analytics" . }}
|
||||
{{ end }}
|
||||
|
@@ -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>
|
||||
|
Reference in New Issue
Block a user