Added Imprint and redirect
This commit is contained in:
1 parent
056a1363b5
commit
cba737b929
4 files changed
+35
No files matched your search
@@ -36,3 +36,7 @@ pagination.pagerSize = 5
|
|||||||
identifier = "contact"
|
identifier = "contact"
|
||||||
name = "Contact"
|
name = "Contact"
|
||||||
url = "/contact"
|
url = "/contact"
|
||||||
|
[[languages.en.menu.main]]
|
||||||
|
identifier = "imprint"
|
||||||
|
name = "Imprint"
|
||||||
|
url = "https://markinstefan.xyz/de/impressum"
|
||||||
Executable
+7
@@ -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/"
|
||||||
|
+++
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
redirect_message = "Redirecting to {{ .URL }} in {{ .Seconds }} seconds..."
|
||||||
|
click_here_redirect = "Click here if you are not redirected"
|
||||||
Executable
+22
@@ -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 }}
|
||||||
Reference in new issue
Block a user