Added new layout file for redirecting

This commit is contained in:
spetznas
2026-04-20 23:57:32 +02:00
parent 164b466461
commit 429b336e99
5 changed files with 28 additions and 0 deletions
Executable → Regular
View File
Executable
+2
View File
@@ -0,0 +1,2 @@
redirect_message = "Weiterleitung zu {{ .URL }} in {{ .Seconds }} Sekunden..."
click_here_redirect = "Hier klicken, falls Sie nicht weitergeleitet werden"
+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"
+2
View File
@@ -0,0 +1,2 @@
redirect_message = "Перенаправление на {{ .URL }} через {{ .Seconds }} секунд..."
click_here_redirect = "Нажмите здесь, если перенаправление не произошло"
+22
View File
@@ -0,0 +1,22 @@
{{ define "content" }}
<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 }}