From cce4e7c88012e59266a0b330883efb9283041fd7 Mon Sep 17 00:00:00 2001 From: Benjamin Bach Date: Sat, 4 Mar 2023 23:43:37 +0100 Subject: [PATCH] Update for Hugo 0.111.1 --- .gitignore | 1 + Dockerfile_hugo | 2 +- themes/datacoop2020/layouts/partials/nav.html | 6 +++--- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index f1ec07e..b498ff2 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,7 @@ # Hugo stuff public resources +.hugo_build.lock # From docker build _site diff --git a/Dockerfile_hugo b/Dockerfile_hugo index 07a8c99..98716cf 100644 --- a/Dockerfile_hugo +++ b/Dockerfile_hugo @@ -3,5 +3,5 @@ FROM debian:buster-slim RUN apt-get update && \ apt-get upgrade -y && \ apt-get install -y wget git && \ - wget https://github.com/gohugoio/hugo/releases/download/v0.80.0/hugo_extended_0.80.0_Linux-64bit.deb -O hugo.deb && \ + wget https://github.com/gohugoio/hugo/releases/download/v0.111.1/hugo_extended_0.111.1_linux-amd64.deb -O hugo.deb && \ dpkg -i hugo.deb diff --git a/themes/datacoop2020/layouts/partials/nav.html b/themes/datacoop2020/layouts/partials/nav.html index 7b712e1..5d2f0e6 100644 --- a/themes/datacoop2020/layouts/partials/nav.html +++ b/themes/datacoop2020/layouts/partials/nav.html @@ -2,9 +2,9 @@
    {{ $currentPage := . }} {{ range .Site.Menus.nav }} - {{ $atURL := absURL $currentPage.URL }} - {{ $compURL := absURL .URL }} -
  1. {{ .Name }}
  2. + {{ $atURL := absURL $currentPage.RelPermalink }} + {{ $compURL := absURL .URL }} +
  3. {{ .Name }}
  4. {{ end }}