mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-12-03 03:48:55 -05:00
playing more with algolia search (and updated a bunch of deps)
This commit is contained in:
@@ -1,2 +1,3 @@
|
||||
<link rel="preload" href="{{ "vendor/fonts/inter-subset.var.woff2" | absURL }}" as="font" type="font/woff2" crossorigin>
|
||||
<link rel="preload" href="{{ "vendor/fonts/roboto-mono-subset.var.woff2" | absURL }}" as="font" type="font/woff2" crossorigin>
|
||||
<link rel="preload" href="{{ "js/app.js" | absURL }}" as="script">
|
||||
|
||||
@@ -14,6 +14,8 @@
|
||||
{{- $js := $bundle | resources.Concat "/js/app.js" -}}
|
||||
<script async defer src="{{ $js.Permalink }}"></script>
|
||||
|
||||
{{- $algolia := resources.Get "js/vendor/algolia.js" -}}
|
||||
{{- $searchJS := slice $algolia | resources.Concat "/js/search.js" -}}
|
||||
<!-- {{ $searchJS.Permalink }} -->
|
||||
{{ if eq .Page.RelPermalink "/search/" }}
|
||||
{{- $algolia := resources.Get "js/vendor/algolia.js" -}}
|
||||
{{- $searchJS := slice $algolia | resources.Concat "/js/search.js" -}}
|
||||
<script async defer src="{{ $searchJS.Permalink }}"></script>
|
||||
{{ end }}
|
||||
|
||||
Reference in New Issue
Block a user