Theme: Use RelPermalink everywhere

This commit is contained in:
jtbx 2023-11-04 22:26:11 +01:00
parent 8ffc773367
commit 80a9b0a2d3
6 changed files with 9 additions and 9 deletions

View file

@ -7,7 +7,7 @@
<ul> <ul>
{{- range .Pages }} {{- range .Pages }}
<li> <li>
<a href="{{ .Permalink }}"><span style="font-variant-numeric: tabular-nums;">{{ .Date.Format "2006-01-02" }}</span> | {{ .Title }}</a> <a href="{{ .RelPermalink }}"><span style="font-variant-numeric: tabular-nums;">{{ .Date.Format "2006-01-02" }}</span> | {{ .Title }}</a>
</li> </li>
{{- end }} {{- end }}
</ul> </ul>

View file

@ -7,7 +7,7 @@
<section> <section>
<ul> <ul>
{{- range .Pages }} {{- range .Pages }}
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li> <li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
{{- end }} {{- end }}
</ul> </ul>
</section> </section>

View file

@ -10,7 +10,7 @@
Filter nach Kategorie: Filter nach Kategorie:
<ul class="aside"> <ul class="aside">
{{- range .Site.Taxonomies.categories }} {{- range .Site.Taxonomies.categories }}
<li><a href="{{ .Page.Permalink }}">[{{ .Page.Title }}]</a></li> <li><a href="{{ .Page.RelPermalink }}">[{{ .Page.Title }}]</a></li>
{{- end }} {{- end }}
</ul> </ul>
</div> </div>

View file

@ -42,7 +42,7 @@
<h4><a href="{{ $link }}">{{ .Title }}</a></h4> <h4><a href="{{ $link }}">{{ .Title }}</a></h4>
{{- $img_path := printf "%s%s" $subsec_dir .Params.Image }} {{- $img_path := printf "%s%s" $subsec_dir .Params.Image }}
{{- with $home.Resources.Get $img_path }} {{- with $home.Resources.Get $img_path }}
<a href="{{ $link }}"><img class="groups-img" src="{{ .Permalink }}"></a> <a href="{{ $link }}"><img class="groups-img" src="{{ .RelPermalink }}"></a>
{{- end }} {{- end }}
{{ .Content }} {{ .Content }}
</div> </div>
@ -54,7 +54,7 @@
<div class="flex-grid"> <div class="flex-grid">
{{- range . }} {{- range . }}
{{- $img := $home.Resources.GetMatch (printf "*/%s" .src) }} {{- $img := $home.Resources.GetMatch (printf "*/%s" .src) }}
<div class="img-link"><a href="{{ .params.url }}"><img src="{{ $img.Permalink }}" class="box-image" alt=""></a></div> <div class="img-link"><a href="{{ .params.url }}"><img src="{{ $img.RelPermalink }}" class="box-image" alt=""></a></div>
{{- end }} {{- end }}
</div> </div>
{{- end }} {{- end }}

View file

@ -6,7 +6,7 @@
{{ with $page }} {{ with $page }}
<header> <header>
{{- if $headingLink }}<a href="{{ .Permalink }}">{{ end }} {{- if $headingLink }}<a href="{{ .RelPermalink }}">{{ end }}
<h{{ $level }}>{{ .Title }}</h{{ $level }}> <h{{ $level }}>{{ .Title }}</h{{ $level }}>
{{- if $headingLink }}</a>{{ end }} {{- if $headingLink }}</a>{{ end }}
{{- with .Params.subtitle }} {{- with .Params.subtitle }}
@ -22,7 +22,7 @@
{{- with .Page.GetTerms "tags" }} {{- with .Page.GetTerms "tags" }}
<span class="li-space"><i class="fa-solid fa-tag"></i> <span class="li-space"><i class="fa-solid fa-tag"></i>
{{- range . }} {{- range . }}
<span class="li-comma"><a href="{{ .Permalink }}">{{ .Title }}</a></span> <span class="li-comma"><a href="{{ .RelPermalink }}">{{ .Title }}</a></span>
{{- end }} {{- end }}
</span> </span>
{{- end }} {{- end }}
@ -32,7 +32,7 @@
{{- with .Page.GetTerms "authors" }} {{- with .Page.GetTerms "authors" }}
<span class="li-space"><i class="fa-regular fa-user"></i> <span class="li-space"><i class="fa-regular fa-user"></i>
{{- range . }} {{- range . }}
<span class="li-comma"><a href="{{ .Permalink }}">{{ .Title }}</a></span> <span class="li-comma"><a href="{{ .RelPermalink }}">{{ .Title }}</a></span>
{{- end }} {{- end }}
</span> </span>
{{- end }} {{- end }}

View file

@ -18,7 +18,7 @@
{{- end }} {{- end }}
{{ range .AlternativeOutputFormats -}} {{ range .AlternativeOutputFormats -}}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} {{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .RelPermalink $.Site.Title | safeHTML }}
{{- end }} {{- end }}
<title>{{ .Title }}</title> <title>{{ .Title }}</title>