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 untrusted user: 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 # Hugo stuff
public public
resources resources
.hugo_build.lock
# From docker build # From docker build
_site _site

View file

@ -3,5 +3,5 @@ FROM debian:buster-slim
RUN apt-get update && \ RUN apt-get update && \
apt-get upgrade -y && \ apt-get upgrade -y && \
apt-get install -y wget git && \ 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 dpkg -i hugo.deb

View file

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