Update for Hugo 0.111.1

This commit is contained in:
Benjamin Bach 2023-03-04 23:43:37 +01:00
parent 7d48887c9d
commit cce4e7c880
Signed by: benjaoming
GPG key ID: 7D49441634585664
3 changed files with 5 additions and 4 deletions

1
.gitignore vendored
View file

@ -5,6 +5,7 @@
# Hugo stuff
public
resources
.hugo_build.lock
# From docker build
_site

View file

@ -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

View file

@ -2,9 +2,9 @@
<ol>
{{ $currentPage := . }}
{{ range .Site.Menus.nav }}
{{ $atURL := absURL $currentPage.URL }}
{{ $compURL := absURL .URL }}
<li><a href="{{ .URL }}"{{ if (eq $atURL $compURL) }} class="active"{{ end }}>{{ .Name }}</a></li>
{{ $atURL := absURL $currentPage.RelPermalink }}
{{ $compURL := absURL .URL }}
<li><a href="{{ .URL }}"{{ if (eq $atURL $compURL) }} class="active"{{ end }}>{{ .Name }}</a></li>
{{ end }}
</ol>