Skip to content

Commit

Permalink
chore: update hugo
Browse files Browse the repository at this point in the history
  • Loading branch information
radoering committed Nov 29, 2024
1 parent 033ea2e commit 05552be
Show file tree
Hide file tree
Showing 8 changed files with 929 additions and 1,384 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy-preview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ jobs:
- name: Install Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: "0.83.1"
hugo-version: "0.139.2"

- name: Build
run: hugo --buildDrafts --buildFuture -v
run: hugo --buildDrafts --buildFuture --logLevel info

- name: Deploy
uses: amondnet/vercel-action@v25
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy-production.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ jobs:
- name: Install Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: "0.83.1"
hugo-version: "0.139.2"

- name: Build
run: hugo -v --minify
run: hugo --minify --logLevel info

- name: Build search index
continue-on-error: true
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/documentation_flyover.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
<p
class="mt-1 text-sm overflow-hidden overflow-ellipsis opacity-60"
>
{{- safeHTML (strings.TrimPrefix (index (split .Name "|") 0) (index (split .Page.Summary ". ") 0)) -}}.
{{- safeHTML (strings.TrimPrefix (index (split .Name "|") 0) (index (split (.Page.Summary | plainify) ". ") 0)) -}}.
</p>
</div>
</a>
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/scripts.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{ $script := resources.Get "assets/app.js" }}

{{ if .Site.IsServer }}
{{ if hugo.IsServer }}
<script type="module" src="{{ $script.RelPermalink }}"></script>
{{ else }}
{{ $script := $script | fingerprint }}
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/stylesheets.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{ $style := resources.Get "assets/app.css" }}

{{ if .Site.IsServer }}
{{ if hugo.IsServer }}
<link rel="stylesheet" href="{{ $style.RelPermalink }}" />
{{ else }}
{{ $style := $style | fingerprint }}
Expand Down
Loading

0 comments on commit 05552be

Please sign in to comment.