mirror of
https://github.com/alex-shpak/hugo-book.git
synced 2025-07-24 01:51:06 +00:00
Merge 01d9ea7f7a
into 118997fa92
This commit is contained in:
commit
4a4f98e584
@ -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 New Issue
Block a user