Theme: Use RelPermalink everywhere

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

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 }}