fix: use current domain (.RelPermalink) instead of hardcoded baseURL (.Permalink)

This commit is contained in:
ae 2025-01-04 20:10:56 +02:00
parent 98dbd4d419
commit e0cf3a3e60
Signed by: ae
GPG Key ID: 995EFD5C1B532B3E
2 changed files with 3 additions and 3 deletions

View File

@ -3,9 +3,9 @@
<h1>{{ .Title }}</h1> <h1>{{ .Title }}</h1>
{{ range .Pages }} {{ range .Pages }}
<article> <article>
<h2><a href="{{ .Permalink }}">{{ .Title }}</a></h2> <h2><a href="{{ .RelPermalink }}">{{ .Title }}</a></h2>
<p class="date">{{ .Date.Format "January 02, 2006" }}</p> <p class="date">{{ .Date.Format "January 02, 2006" }}</p>
<p>{{ .Summary }}</p> <p>{{ .Summary | truncate 200 }}</p>
</article> </article>
{{ end }} {{ end }}
</div> </div>

View File

@ -10,7 +10,7 @@
<!-- Metadata --> <!-- Metadata -->
<meta name="description" content="{{ site.Params.description }}" /> <meta name="description" content="{{ site.Params.description }}" />
<meta name="robots" content="index, follow" /> <meta name="robots" content="index, follow" />
<meta name="canonical" href="{{ .Permalink }}" /> <meta name="canonical" href="{{ .RelPermalink }}" />
<!-- Icons --> <!-- Icons -->
<link <link