This commit is contained in:
Junyu Liu 2023-12-05 09:21:21 +08:00 committed by GitHub
commit 4a4f98e584
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@
{{ range $index, $page := $pages }}
{{ if gt $index 0}},{{end}} {
"id": {{ $index }},
"href": "{{ $page.RelPermalink }}",
"href": "{{ $page.Permalink }}",
"title": {{ (partial "docs/title" $page) | jsonify }},
"section": {{ (partial "docs/title" $page.Parent) | jsonify }},
"content": {{ $page.Plain | jsonify }}

View File

@ -5,7 +5,7 @@
{{ $searchConfig := i18n "bookSearchConfig" | default "{}" }}
(function () {
const searchDataURL = '{{ $searchData.RelPermalink }}';
const searchDataURL = '{{ $searchData.Permalink }}';
const indexConfig = Object.assign({{ $searchConfig }}, {
doc: {
id: 'id',