diff --git a/.github/workflows/gh-pages-deployment.yml b/.github/workflows/gh-pages-deployment.yml index 60111a24b..772c0e5f9 100644 --- a/.github/workflows/gh-pages-deployment.yml +++ b/.github/workflows/gh-pages-deployment.yml @@ -14,7 +14,7 @@ jobs: - name: Setup Hugo uses: peaceiris/actions-hugo@v2 with: - hugo-version: '0.63.2' + hugo-version: '0.119.0' - name: Build run: scripts/generate-site.sh diff --git a/themes/mapstruct/layouts/partials/header.html b/themes/mapstruct/layouts/partials/header.html index 23e542968..c23a07033 100644 --- a/themes/mapstruct/layouts/partials/header.html +++ b/themes/mapstruct/layouts/partials/header.html @@ -53,7 +53,7 @@ {{- if eq $currentPage.IsNode false -}} - {{- if and ( eq "News" .Name ) ( in $currentPage.Path "news" ) -}} + {{- if and ( eq "News" .Name ) ( eq $currentPage.Section "news" ) -}} {{- $.Scratch.Set "active" true -}} {{- end -}} {{- end }}