Skip to content

Commit

Permalink
Upgrade to latest Hugo v0.134.2 (#486)
Browse files Browse the repository at this point in the history
Co-authored-by: Oliver Zhang <[email protected]>
  • Loading branch information
ozhang22 and Oliver Zhang authored Sep 16, 2024
1 parent 302159b commit c904f06
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-github-pages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.115.4'
hugo-version: '0.134.2'

- name: Build
run: hugo --baseURL "https://nuevofoundation.github.io/workshops/" --minify
Expand Down
4 changes: 2 additions & 2 deletions azure-pipelines/hugo-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ parameters:

steps:
# 1. Downloads specified version of Hugo executable
- script: wget https://github.com/gohugoio/hugo/releases/download/v0.115.4/hugo_0.115.4_linux-amd64.deb -O '$(Pipeline.Workspace)/hugo_0.115.4_linux-amd64.deb'
displayName: Download Hugo 0.115.4 Linux x64
- script: wget https://github.com/gohugoio/hugo/releases/download/v0.134.2/hugo_0.134.2_linux-amd64.deb -O '$(Pipeline.Workspace)/hugo_0.134.2_linux-amd64.deb'
displayName: Download Hugo 0.134.2 Linux x64
# 2. Installs Hugo executable
- script: sudo dpkg -i $(Pipeline.Workspace)/hugo*.deb
displayName: Install Hugo
Expand Down
15 changes: 0 additions & 15 deletions themes/docdock/layouts/partials/flex/body-aftercontent.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,21 +37,6 @@
{{end}}
</div>


<div>
{{ $footer := print "_footer." .Lang }}
{{ range where .Site.Pages "File.BaseFileName" $footer }}
{{ .Content }}
{{else}}
{{ if .Site.GetPage "page" "_footer.md" }}
{{(.Site.GetPage "page" "_footer.md").Content}}
{{else}}
{{ T "create-footer-md" }}
{{end}}
{{end}}


</div>
</footer>

{{ partial "flex/scripts.html" . }}
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<script type="text/javascript" src="{{"js/auto-complete.js" | relURL}}"></script>
<link href="{{"css/auto-complete.css" | relURL}}" rel="stylesheet">
<script type="text/javascript">
{ { - if .Site.IsMultiLingual } }
{ { - if hugo.IsMultilingual } }
var baseurl = "{{.Site.BaseURL}}{{.Site.LanguagePrefix}}";
{ { - else } }
var baseurl = "{{.Site.BaseURL}}";
Expand Down
2 changes: 1 addition & 1 deletion themes/docdock/layouts/partials/language-selector.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if and .Site.IsMultiLingual (not .Site.Params.DisableLanguageSwitchingButton)}}
{{- if and hugo.IsMultilingual (not .Site.Params.DisableLanguageSwitchingButton)}}
<select id="select-language" onchange="location = this.value;">
{{ $siteLanguages := .Site.Languages}}
{{ $pageLang := .Page.Lang}}
Expand Down

0 comments on commit c904f06

Please sign in to comment.