File tree Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Original file line number Diff line number Diff line change 42
42
submodules : recursive
43
43
fetch-depth : 0
44
44
45
+ - name : Patch Hugo book
46
+ run : patch -p0 < themes/patch_book.txt
47
+
45
48
- name : Create public directory
46
49
run : mkdir public
47
50
Original file line number Diff line number Diff line change
1
+ --- themes/book/assets/search.js 2023-11-23 16:41:11
2
+ +++ themes/book/assets/search.js 2023-11-23 16:41:08
3
+ @@ -5,7 +5,7 @@
4
+ {{ $searchConfig := i18n "bookSearchConfig" | default "{}" }}
5
+
6
+ (function () {
7
+ - const searchDataURL = '{{ $searchData.RelPermalink }}';
8
+ + const searchDataURL = '{{ $searchData.Permalink }}';
9
+ const indexConfig = Object.assign({{ $searchConfig }}, {
10
+ doc: {
11
+ id: 'id',
12
+ --- themes/book/assets/search-data.json 2023-11-23 17:13:03
13
+ +++ themes/book/assets/search-data.json 2023-11-23 17:13:08
14
+ @@ -8,7 +8,7 @@
15
+ {{ range $index, $page := $pages }}
16
+ {{ if gt $index 0}},{{end}} {
17
+ "id": {{ $index }},
18
+ - "href": "{{ $page.RelPermalink }}",
19
+ + "href": "{{ $page.Permalink }}",
20
+ "title": {{ (partial "docs/title" $page) | jsonify }},
21
+ "section": {{ (partial "docs/title" $page.Parent) | jsonify }},
22
+ "content": {{ $page.Plain | jsonify }}
You can’t perform that action at this time.
0 commit comments