mirror of
https://github.com/thegeeklab/hugo-geekblog.git
synced 2024-11-22 13:10:40 +00:00
fix base url for example page and use relative links if possible
This commit is contained in:
parent
d4fc9e20b8
commit
d839d653ea
@ -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
|
||||||
|
@ -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 }}
|
||||||
|
Loading…
Reference in New Issue
Block a user