Improvements to kerneprincipper layout in Danish #59

Merged
benjaoming merged 2 commits from benjaoming/website:badge-layout into new 2023-03-04 23:06:23 +00:00
3 changed files with 5 additions and 4 deletions
Showing only changes of commit cce4e7c880 - Show all commits

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