mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-07-19 04:35:31 -04:00
execute twemoji script as a template (mainly to get baseURL)
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
{{ if eq hugo.Environment "production" }}
|
||||
<link rel="preconnect" href="https://s.jarv.is" crossorigin="anonymous">
|
||||
<link rel="preconnect" href="https://s.jarv.is" crossorigin>
|
||||
{{ if and .IsPage (and (eq .Type "notes") (ne .Params.comments false)) }}
|
||||
<link rel="preconnect" href="https://utteranc.es" crossorigin="anonymous">
|
||||
<link rel="preconnect" href="https://api.utteranc.es" crossorigin="anonymous">
|
||||
<link rel="preconnect" href="https://api.github.com" crossorigin="anonymous">
|
||||
<link rel="preconnect" href="https://utteranc.es" crossorigin>
|
||||
<link rel="preconnect" href="https://api.utteranc.es" crossorigin>
|
||||
<link rel="preconnect" href="https://api.github.com" crossorigin>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
<link rel="preload" href="{{ "vendor/inter/inter-regular-subset.woff2" | absURL }}" as="font" type="font/woff2" crossorigin="anonymous">
|
||||
<link rel="preload" href="{{ "vendor/inter/inter-medium-subset.woff2" | absURL }}" as="font" type="font/woff2" crossorigin="anonymous">
|
||||
<link rel="preload" href="{{ "vendor/inter/inter-bold-subset.woff2" | absURL }}" as="font" type="font/woff2" crossorigin="anonymous">
|
||||
<link rel="preload" href="{{ "vendor/inter/inter-regular-subset.woff2" | absURL }}" as="font" type="font/woff2" crossorigin>
|
||||
<link rel="preload" href="{{ "vendor/inter/inter-medium-subset.woff2" | absURL }}" as="font" type="font/woff2" crossorigin>
|
||||
<link rel="preload" href="{{ "vendor/inter/inter-bold-subset.woff2" | absURL }}" as="font" type="font/woff2" crossorigin>
|
||||
|
@@ -1 +1,2 @@
|
||||
<script async defer src="{{ "vendor/emoji/emoji.min.js" | absURL }}"></script>
|
||||
{{ $twemoji := resources.Get "vendor/emoji/emoji.min.js" | resources.ExecuteAsTemplate "vendor/emoji/emoji.min.js" . }}
|
||||
<script async defer src="{{ $twemoji.Permalink }}"></script>
|
||||
|
@@ -4,4 +4,4 @@
|
||||
data-issue-term="og:title"
|
||||
data-label="comments"
|
||||
data-theme="github-light"
|
||||
crossorigin="anonymous"></script>
|
||||
crossorigin></script>
|
||||
|
Reference in New Issue
Block a user