forked from data.coop/website
Update for Hugo 0.111.1
This commit is contained in:
parent
7d48887c9d
commit
cce4e7c880
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -5,6 +5,7 @@
|
|||
# Hugo stuff
|
||||
public
|
||||
resources
|
||||
.hugo_build.lock
|
||||
|
||||
# From docker build
|
||||
_site
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in a new issue