fix base url for example page and use relative links if possible

This commit is contained in:
Robert Kaussow 2020-07-08 09:24:59 +02:00
parent d4fc9e20b8
commit d839d653ea
No known key found for this signature in database
GPG Key ID: 65362AE74AF98B61
2 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
--- ---
baseURL: https://geekblog.geekdocs.de/ baseURL: https://hugo-geekblog.geekdocs.de/
title: Geekblog title: Geekblog
theme: hugo-geekblog theme: hugo-geekblog
pygmentsUseClasses: true pygmentsUseClasses: true

View File

@ -19,11 +19,11 @@
</label> </label>
</div> </div>
<ul class="gblog-nav__list container flex flex-wrap justify-center menu-content"> <ul class="gblog-nav__list container flex flex-wrap justify-center menu-content">
{{ $currentPage := .Permalink }} {{ $currentPage := .RelPermalink }}
{{ range $name, $taxonomy := .Site.Taxonomies.tags }} {{ range $name, $taxonomy := .Site.Taxonomies.tags }}
{{ with $.Site.GetPage (printf "/tags/%s" $name) }} {{ with $.Site.GetPage (printf "/tags/%s" $name) }}
<li> <li>
<a class="gblog-nav__entry {{ if eq $currentPage .Permalink }} is-active {{ end }}" href="{{ .Permalink }}">{{ .Title }}</a> <a class="gblog-nav__entry {{ if eq $currentPage .RelPermalink }} is-active {{ end }}" href="{{ .RelPermalink }}">{{ .Title }}</a>
</li> </li>
{{ end }} {{ end }}
{{ end }} {{ end }}