Theme: Use RelPermalink everywhere
This commit is contained in:
parent
8ffc773367
commit
80a9b0a2d3
|
@ -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>
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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 }}
|
||||||
|
|
|
@ -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 }}
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue