Compare commits

...

3 Commits

Author SHA1 Message Date
rottenwheel
3acfa76d7c
Merge pull request #3 from kumitterer/main
fix: update link paths to relative URLs in post listings
2024-07-25 19:31:31 +00:00
Kumi
938e75c770
Merge branch 'rottenwheel:main' into main 2024-07-25 21:14:36 +02:00
Kumi
04bede3d3f
fix: update link paths to relative URLs in post listings
Switched from absolute to relative permalinks to ensure more flexible navigation and better support for different environments (clearnet/.onion). This change prevents broken links in environments where the site domain may differ.
2024-07-25 21:14:13 +02:00

View File

@ -8,7 +8,7 @@
<ul>
{{ range where .Site.RegularPages "Section" "posts" }}
<li>
<a href="{{ .Permalink }}">{{ .Title }}</a> - {{ .Date.Format "2006-01-02" }}
<a href="{{ .RelPermalink }}">{{ .Title }}</a> - {{ .Date.Format "2006-01-02" }}
</li>
{{ end }}
</ul>