Skip to content

Commit 7c053db

Browse files
cleanup and upgrade remaining files
Signed-off-by: saurabhraghuvanshii <saurabhsraghuvanshi@gmail.com>
1 parent 48f7ad3 commit 7c053db

4 files changed

Lines changed: 3 additions & 5 deletions

File tree

.github/workflows/preview-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
build-and-deploy:
2828
runs-on: ubuntu-latest
2929
env:
30-
HUGO_VERSION: 0.147.9
30+
HUGO_VERSION: 0.158.0
3131

3232
steps:
3333
- name: Install Hugo CLI

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
1. **Install prerequisites**
3737

3838
- [Go](https://go.dev/dl/) ≥ 1.20
39-
- [Hugo Extended](https://gohugo.io/getting-started/installing/) ≥ 0.147
39+
- [Hugo Extended](https://gohugo.io/getting-started/installing/) ≥ 0.158 (required for `hugo.Sites` in offline search index; CI uses 0.158)
4040

4141
2. **Fetch and tidy dependencies**
4242

assets/json/offline-search-index.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
{{- $.Scratch.Add "offline-search-index" slice -}}
22
{{- range hugo.Sites -}}
33
{{- range where .Pages ".Params.exclude_search" "!=" true -}}
4-
{{- /* We have to apply `htmlUnescape` again after `truncate` because `truncate` applies `html.EscapeString` if the argument is not HTML. */ -}}
5-
{{- /* Individual taxonomies can be added in the next line by add '"taxonomy-name" (.Params.taxonomy-name | default "")' to the dict (as seen for categories and tags). */ -}}
64
{{- $.Scratch.Add
75
"offline-search-index"
86
(dict

hugo.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ignoreLogs: ['warning-goldmark-raw-html']
66
module:
77
hugoVersion:
88
extended: true
9-
min: 0.146.0
9+
min: 0.158.0
1010
imports:
1111

1212
# used to source the base theme for academy.

0 commit comments

Comments
 (0)