Skip to content

Commit

Permalink
fix: index is break if a content contain certain characters
Browse files Browse the repository at this point in the history
  • Loading branch information
Ravinou authored Aug 11, 2023
1 parent f7e92de commit 3a5d139
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions assets/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,20 +78,6 @@ Source:

// Not yet supported: https://github.com/nextapps-de/flexsearch#complex-documents

/*
var docs = [
{{ range $index, $page := (where .Site.Pages "Section" "docs") -}}
{
id: {{ $index }},
href: "{{ .Permalink }}",
title: {{ .Title | jsonify }},
description: {{ .Params.description | jsonify }},
content: {{ .Content | jsonify }}
},
{{ end -}}
];
*/

// https://discourse.gohugo.io/t/range-length-or-last-element/3803/2

{{ $list := slice }}
Expand Down

0 comments on commit 3a5d139

Please sign in to comment.