mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-23 07:47:54 +00:00
search: move lunr to subdir #427
This commit is contained in:
parent
bf1c4dce2f
commit
6bdf05fe96
29 changed files with 5 additions and 5 deletions
|
@ -16,7 +16,7 @@
|
||||||
{{- $quotedcontentlangs := slice }}
|
{{- $quotedcontentlangs := slice }}
|
||||||
{{- $missingcontentlangs := slice }}
|
{{- $missingcontentlangs := slice }}
|
||||||
{{- range $contentlangs }}
|
{{- range $contentlangs }}
|
||||||
{{- $f := printf "/static/js/lunr.%s.min.js" . }}
|
{{- $f := printf "/static/js/lunr/lunr.%s.min.js" . }}
|
||||||
{{- if partialCached "fileExists.hugo" $f $f }}
|
{{- if partialCached "fileExists.hugo" $f $f }}
|
||||||
{{- $quotedcontentlangs = $quotedcontentlangs | append (printf "'%s'" .) }}
|
{{- $quotedcontentlangs = $quotedcontentlangs | append (printf "'%s'" .) }}
|
||||||
{{- else }}
|
{{- else }}
|
||||||
|
@ -28,11 +28,11 @@
|
||||||
var contentLangs=[{{ delimit $quotedcontentlangs ", " | safeJS }}];
|
var contentLangs=[{{ delimit $quotedcontentlangs ", " | safeJS }}];
|
||||||
</script>
|
</script>
|
||||||
<script src="{{"js/auto-complete.js" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" defer></script>
|
<script src="{{"js/auto-complete.js" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" defer></script>
|
||||||
<script src="{{"js/lunr.min.js" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" defer></script>
|
<script src="{{"js/lunr/lunr.min.js" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" defer></script>
|
||||||
<script src="{{"js/lunr.stemmer.support.min.js" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" defer></script>
|
<script src="{{"js/lunr/lunr.stemmer.support.min.js" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" defer></script>
|
||||||
<script src="{{"js/lunr.multi.min.js" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" defer></script>
|
<script src="{{"js/lunr/lunr.multi.min.js" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" defer></script>
|
||||||
{{- range $contentlangs }}
|
{{- range $contentlangs }}
|
||||||
{{- $file := (printf "js/lunr.%s.min.js" .) }}
|
{{- $file := (printf "js/lunr/lunr.%s.min.js" .) }}
|
||||||
<script src="{{ $file | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" defer></script>
|
<script src="{{ $file | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" defer></script>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
<script src="{{ "js/search.js" | relURL }}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" defer></script>
|
<script src="{{ "js/search.js" | relURL }}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" defer></script>
|
Loading…
Reference in a new issue