fix(search): searchDataURL must not use relative URL
This commit is contained in:
parent
3f1bcccbfb
commit
01d9ea7f7a
2 changed files with 2 additions and 2 deletions
|
@ -8,7 +8,7 @@
|
||||||
{{ range $index, $page := $pages }}
|
{{ range $index, $page := $pages }}
|
||||||
{{ if gt $index 0}},{{end}} {
|
{{ if gt $index 0}},{{end}} {
|
||||||
"id": {{ $index }},
|
"id": {{ $index }},
|
||||||
"href": "{{ $page.RelPermalink }}",
|
"href": "{{ $page.Permalink }}",
|
||||||
"title": {{ (partial "docs/title" $page) | jsonify }},
|
"title": {{ (partial "docs/title" $page) | jsonify }},
|
||||||
"section": {{ (partial "docs/title" $page.Parent) | jsonify }},
|
"section": {{ (partial "docs/title" $page.Parent) | jsonify }},
|
||||||
"content": {{ $page.Plain | jsonify }}
|
"content": {{ $page.Plain | jsonify }}
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
{{ $searchConfig := i18n "bookSearchConfig" | default "{}" }}
|
{{ $searchConfig := i18n "bookSearchConfig" | default "{}" }}
|
||||||
|
|
||||||
(function () {
|
(function () {
|
||||||
const searchDataURL = '{{ $searchData.RelPermalink }}';
|
const searchDataURL = '{{ $searchData.Permalink }}';
|
||||||
const indexConfig = Object.assign({{ $searchConfig }}, {
|
const indexConfig = Object.assign({{ $searchConfig }}, {
|
||||||
doc: {
|
doc: {
|
||||||
id: 'id',
|
id: 'id',
|
||||||
|
|
Loading…
Reference in a new issue