Skip to content

Commit

Permalink
Fix hugo compile failed
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbumenJ committed Sep 13, 2024
1 parent 00c9f3e commit 12b6b8e
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.127.0'
hugo-version: 'latest'
extended: true
- name: Build
env:
Expand Down Expand Up @@ -59,7 +59,7 @@ jobs:
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.127.0'
hugo-version: 'latest'
extended: true
- name: Build
env:
Expand Down
4 changes: 2 additions & 2 deletions layouts/blog/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@
{{ partial "docs/thirdparty-disclaimer.html" . }}
{{- end -}}
{{- end -}}
{{ if (and (not .Params.hide_feedback) (.Site.Params.ui.feedback.enable) (.Site.GoogleAnalytics)) }}
{{ if (and (not .Params.hide_feedback) (.Site.Params.ui.feedback.enable) (.Site.Config.Services.GoogleAnalytics.ID)) }}
{{ partial "feedback.html" .Site.Params.ui.feedback }}
{{ end }}
<!-- {{ partial "page-meta-lastmod.html" . }}-->
{{ if (.Site.DisqusShortname) }}
{{ if (.Site.Config.Services.Disqus.Shortname) }}
<br />
{{ partial "disqus-comment.html" . }}
{{ end }}
Expand Down
4 changes: 2 additions & 2 deletions layouts/docs/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@
{{ partial "docs/thirdparty-disclaimer.html" . }}
{{- end -}}
{{- end -}}
<!-- {{ if (and (not .Params.hide_feedback) (.Site.Params.ui.feedback.enable) (.Site.GoogleAnalytics)) }}-->
<!-- {{ if (and (not .Params.hide_feedback) (.Site.Params.ui.feedback.enable) (.Site.Config.Services.GoogleAnalytics.ID)) }}-->
<!-- {{ partial "feedback.html" .Site.Params.ui.feedback }}-->
<!-- {{ end }}-->
{{ if (.Site.DisqusShortname) }}
{{ if (.Site.Config.Services.Disqus.Shortname) }}
<br />
{{ partial "disqus-comment.html" . }}
{{ end }}
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/css.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!-- All former base stylesheet links commented out as we are using Docsy for styles. -->

{{ $inServerMode := site.IsServer }}
{{ $inServerMode := hugo.IsServer }}

{{- if .Params.case_study_styles }}
{{ $cssOutput := "css/case-studies.css" }}
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/scripts.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
{{ $jsSearch = resources.Get "js/offline-search.js" }}
{{ end }}
{{ $js := (slice $jsSearch) | resources.Concat "js/main.js" }}
{{ if .Site.IsServer }}
{{ if hugo.IsServer }}
<script src="{{ $js.RelPermalink }}"></script>
{{ else }}
{{ $js := $js | minify | fingerprint }}
Expand Down

0 comments on commit 12b6b8e

Please sign in to comment.