mirror of
https://github.com/thegeeklab/hugo-geekblog.git
synced 2024-11-25 06:20: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
|
||||
theme: hugo-geekblog
|
||||
pygmentsUseClasses: true
|
||||
|
@ -19,11 +19,11 @@
|
||||
</label>
|
||||
</div>
|
||||
<ul class="gblog-nav__list container flex flex-wrap justify-center menu-content">
|
||||
{{ $currentPage := .Permalink }}
|
||||
{{ $currentPage := .RelPermalink }}
|
||||
{{ range $name, $taxonomy := .Site.Taxonomies.tags }}
|
||||
{{ with $.Site.GetPage (printf "/tags/%s" $name) }}
|
||||
<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>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
Loading…
Reference in New Issue
Block a user