Modify JSON index for my website and change JavaScript file's relative location

This commit is contained in:
Ethan Yoo 2022-12-29 09:46:16 -05:00
parent 863dccbda8
commit 59d76a2c25
Signed by: ethan
GPG Key ID: 70596474C5D20F85
2 changed files with 2 additions and 2 deletions

View File

@ -10,6 +10,6 @@
{{- $.Scratch.Set "date" (.Date.Format "2006-01-02") -}}
{{- 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 -}}
{{- $index | jsonify -}}

View File

@ -7,7 +7,7 @@
<ul id="search-results" class="search--display"></ul>
</form>
<!-- <script src="{{ "/scripts/fuse.js" | relURL }}"></script> -->
<script src="{{ "/scripts/fixedsearch/fixedsearch.js" | relURL }}"></script>
<script src="{{ "/js/fixedsearch.js" | relURL }}"></script>
<style>
#search-form {