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>
{{- range .Pages }}
<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>
{{- end }}
</ul>

View file

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

View file

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

View file

@ -42,7 +42,7 @@
<h4><a href="{{ $link }}">{{ .Title }}</a></h4>
{{- $img_path := printf "%s%s" $subsec_dir .Params.Image }}
{{- 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 }}
{{ .Content }}
</div>
@ -54,7 +54,7 @@
<div class="flex-grid">
{{- range . }}
{{- $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 }}
</div>
{{- end }}

View file

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

View file

@ -18,7 +18,7 @@
{{- end }}
{{ 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 }}
<title>{{ .Title }}</title>