mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2026-07-27 12:56:03 -04:00
remove algolia search stuff from production for now
This commit is contained in:
@@ -1,8 +0,0 @@
|
||||
{{- $.Scratch.Add "index" slice -}}
|
||||
{{- $section := $.Site.GetPage "section" .Section }}
|
||||
{{- range .Site.AllPages -}}
|
||||
{{- if or (and (.IsDescendant $section) (and (not .Draft) (not .Params.private))) $section.IsHome -}}
|
||||
{{- $.Scratch.Add "index" (dict "objectID" .File.UniqueID "date" .Date.UTC.Unix "description" .Description "kind" .Kind "lang" .Lang "lastmod" .Lastmod.UTC.Unix "permalink" .Permalink "publishdate" .PublishDate "readingtime" .ReadingTime "summary" .Summary "title" (.Title | markdownify | htmlUnescape | plainify) "type" .Type "url" .RelPermalink "weight" .Weight "wordcount" .WordCount "section" .Section "tags" .Params.Tags "authors" $.Site.Author.name)}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- $.Scratch.Get "index" | jsonify -}}
|
||||
@@ -13,10 +13,3 @@
|
||||
|
||||
{{- $js := $bundle | resources.Concat "/js/app.js" -}}
|
||||
<script async defer src="{{ $js.Permalink }}"></script>
|
||||
|
||||
{{ if eq .Page.RelPermalink "/search/" }}
|
||||
{{- $algolia := resources.Get "js/vendor/algolia.js" -}}
|
||||
{{- $algoliaConfig := resources.Get "js/search.js" -}}
|
||||
{{- $searchJS := slice $algolia $algoliaConfig | resources.Concat "/js/search.js" -}}
|
||||
<script async defer src="{{ $searchJS.Permalink }}"></script>
|
||||
{{ end }}
|
||||
|
||||
Reference in New Issue
Block a user