1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-03 15:16:40 -04:00

playing more with algolia search (and updated a bunch of deps)

This commit is contained in:
2020-12-18 08:25:23 -05:00
parent de1996c661
commit 898a65e296
10 changed files with 238 additions and 230 deletions

View File

@ -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 }}