Modify JSON index for my website and change JavaScript file's relative location
This commit is contained in:
parent
863dccbda8
commit
59d76a2c25
|
@ -10,6 +10,6 @@
|
||||||
{{- $.Scratch.Set "date" (.Date.Format "2006-01-02") -}}
|
{{- $.Scratch.Set "date" (.Date.Format "2006-01-02") -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{- $index = $index | append (dict "title" ( .Title | plainify ) "permalink" .Permalink "section" (i18n (.Section | title)) "tags" (apply .Params.tags "i18n" "." ) "categories" (apply .Params.categories "i18n" "." ) "summary" (.Params.summary | markdownify | htmlUnescape | plainify) "date" ($.Scratch.Get "date") ) -}}
|
{{- $index = $index | append (dict "title" ( .Title | plainify ) "permalink" .Permalink "tags" .Params.tags "description" (.Params.description | markdownify | htmlUnescape | plainify) "date" ($.Scratch.Get "date") ) -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- $index | jsonify -}}
|
{{- $index | jsonify -}}
|
|
@ -7,7 +7,7 @@
|
||||||
<ul id="search-results" class="search--display"></ul>
|
<ul id="search-results" class="search--display"></ul>
|
||||||
</form>
|
</form>
|
||||||
<!-- <script src="{{ "/scripts/fuse.js" | relURL }}"></script> -->
|
<!-- <script src="{{ "/scripts/fuse.js" | relURL }}"></script> -->
|
||||||
<script src="{{ "/scripts/fixedsearch/fixedsearch.js" | relURL }}"></script>
|
<script src="{{ "/js/fixedsearch.js" | relURL }}"></script>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
#search-form {
|
#search-form {
|
||||||
|
|
Loading…
Reference in New Issue