Added Imprint and redirect

This commit is contained in:
spetznas committed 2026-06-23 06:57:18 +02:00
1 parent 056a1363b5
commit cba737b929
4 files changed
+35

No files matched your search

+4
View File
@@ -36,3 +36,7 @@ pagination.pagerSize = 5
identifier = "contact"
name = "Contact"
url = "/contact"
[[languages.en.menu.main]]
identifier = "imprint"
name = "Imprint"
url = "https://markinstefan.xyz/de/impressum"
+7
View File
@@ -0,0 +1,7 @@
+++
date = '2026-06-23T06:50:43+02:00'
title = "Redirecting to Impressum"
layout = "redirect"
slug = "imprint"
redirect_url = "https://markinstefan.xyz/de/impressum/"
+++
+2
View File
@@ -0,0 +1,2 @@
redirect_message = "Redirecting to {{ .URL }} in {{ .Seconds }} seconds..."
click_here_redirect = "Click here if you are not redirected"
+22
View File
@@ -0,0 +1,22 @@
{{ define "main" }}
<div class="container">
<article>
<h1>{{ .Title }}</h1>
<p>
{{ i18n "redirect_message" (dict
"Seconds" (.Params.redirect_delay | default 3)
"URL" .Params.redirect_url
) }}
</p>
<p>
<a href="{{ .Params.redirect_url }}" rel="noopener noreferrer">
{{ i18n "click_here_redirect" }}
</a>
</p>
</article>
</div>
<meta http-equiv="refresh" content="{{ .Params.redirect_delay | default 3 }}; url={{ .Params.redirect_url }}">
{{ end }}