Make all links non-relative

This commit is contained in:
2025-03-09 11:26:56 +01:00
parent 1340c77a2f
commit 1dcf58286d
19 changed files with 29 additions and 38 deletions

View File

@@ -6,7 +6,7 @@
<div class="announcement-list">
{{ $announcements := partial "get-announcement-list" . }}
{{ range $announcements }}
{{ $urlBlogEntry := .RelPermalink}}
{{ $urlBlogEntry := .Permalink}}
<div class="entry">
<span class="time">
{{ (time.AsTime .Params.announcement.date).Format "02.01.2006" }}

View File

@@ -15,7 +15,7 @@
<div class="archive-year-list">
<div class="date">{{ .Date.Format "02.01.2006" }}</div>
<div class="title">
<a href="{{ .RelPermalink}}">
<a href="{{ .Permalink}}">
{{ .Title }}
</a>
</div>

View File

@@ -4,7 +4,7 @@
</a>
<div class="news-blog">
{{ range (.Paginate (first 30 ( where .Site.RegularPages "Section" "==" "news")) 10 ).Pages }}
{{ $urlBlogEntry := .RelPermalink}}
{{ $urlBlogEntry := .Permalink}}
<div class="blog-entry">
<div class="header">
{{ .Date.Format "02.01.2006" }}
@@ -21,7 +21,7 @@
{{/* {{ with ($resImage).Fit "290x190 webp" }} */}}
{{ with $resImage }}
<a href="{{ $urlBlogEntry }}">
<img src="{{ (.Fit "290x190 webp").RelPermalink }}">
<img src="{{ (.Fit "290x190 webp").Permalink }}">
</a>
{{ end }}
{{ end }}

View File

@@ -3,14 +3,5 @@
<h1>{{ .Title }}</h1>
</a>
{{ .Content }}
<!--{{ range .Pages.ByPublishDate.Reverse }}
<p>
<h3><a class="title" href="{{ .RelPermalink }}">{{ .Title }}</a></h3>
{{ partial "metadata.html" . }}
<a class="summary" href="{{ .RelPermalink }}">
<p>{{ .Summary }}</p>
</a>
</p>
{{ end }}-->
{{ partial "totop" }}
{{ end }}

View File

@@ -17,7 +17,7 @@
<div class="day">
<div class="date">{{ .Key }}</div>
{{ range .Pages }}
<div class="participation"><a href="{{ .RelPermalink }}">{{ .Params.ort }} ({{ .Params.partner }} / {{ .Params.partnerin }})</a></div>
<div class="participation"><a href="{{ .Permalink }}">{{ .Params.ort }} ({{ .Params.partner }} / {{ .Params.partnerin }})</a></div>
{{ end }}
</div>
{{ end }}