Skip to content

Commit 535400e

Browse files
radoeringabn
authored andcommitted
chore: update hugo
1 parent 033ea2e commit 535400e

File tree

8 files changed

+929
-1384
lines changed

8 files changed

+929
-1384
lines changed

.github/workflows/deploy-preview.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ jobs:
5959
- name: Install Hugo
6060
uses: peaceiris/actions-hugo@v2
6161
with:
62-
hugo-version: "0.83.1"
62+
hugo-version: "0.139.2"
6363

6464
- name: Build
65-
run: hugo --buildDrafts --buildFuture -v
65+
run: hugo --buildDrafts --buildFuture --logLevel info
6666

6767
- name: Deploy
6868
uses: amondnet/vercel-action@v25

.github/workflows/deploy-production.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ jobs:
5353
- name: Install Hugo
5454
uses: peaceiris/actions-hugo@v2
5555
with:
56-
hugo-version: "0.83.1"
56+
hugo-version: "0.139.2"
5757

5858
- name: Build
59-
run: hugo -v --minify
59+
run: hugo --minify --logLevel info
6060

6161
- name: Build search index
6262
continue-on-error: true

layouts/partials/documentation_flyover.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
<p
5757
class="mt-1 text-sm overflow-hidden overflow-ellipsis opacity-60"
5858
>
59-
{{- safeHTML (strings.TrimPrefix (index (split .Name "|") 0) (index (split .Page.Summary ". ") 0)) -}}.
59+
{{- safeHTML (strings.TrimPrefix (index (split .Name "|") 0) (index (split (.Page.Summary | plainify) ". ") 0)) -}}.
6060
</p>
6161
</div>
6262
</a>

layouts/partials/scripts.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{{ $script := resources.Get "assets/app.js" }}
22

3-
{{ if .Site.IsServer }}
3+
{{ if hugo.IsServer }}
44
<script type="module" src="{{ $script.RelPermalink }}"></script>
55
{{ else }}
66
{{ $script := $script | fingerprint }}

layouts/partials/stylesheets.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{{ $style := resources.Get "assets/app.css" }}
22

3-
{{ if .Site.IsServer }}
3+
{{ if hugo.IsServer }}
44
<link rel="stylesheet" href="{{ $style.RelPermalink }}" />
55
{{ else }}
66
{{ $style := $style | fingerprint }}

0 commit comments

Comments
 (0)