add smol redirector
Marco Andronaco andronacomarco@gmail.com
Sat, 11 Feb 2023 12:48:49 +0100
4 files changed,
29 insertions(+),
0 deletions(-)
A
archetypes/smol.md
@@ -0,0 +1,6 @@
++++ +draft = false +slug = "{{ .Name }}" +redirect = "https://" ++++ +CONTENT NOT RENDERED
A
content/smol/cv.md
@@ -0,0 +1,6 @@
++++ +draft = false +slug = "cv" +redirect = "https://mega.nz/file/NQ40FRIC#7LF_0OoR5yJzos51UIffOCEiovQetghXh0_cw_31Y6c" ++++ +CONTENT NOT RENDERED
A
content/smol/tesi.md
@@ -0,0 +1,6 @@
++++ +draft = false +slug = "tesi" +redirect = "https://mega.nz/file/JFwEWYZA#Uk6EF8QLyuvaxE9r389ufqXhwGiOC8GNbwLujP4YhlU" ++++ +CONTENT NOT RENDERED
A
layouts/smol/single.html
@@ -0,0 +1,11 @@
+{{ define "main" }} +{{ if not (.Draft) }}<meta http-equiv="Refresh" content="0; url='{{ .Params.redirect }}'" />{{ end }} +<main> + <article> + <h1 class="title">Redirecting...</h1> + <section class="body"> + Please click <a href="{{ .Params.redirect }}">here</a> if you are not automatically redirected. + </section> + </article> +</main> +{{ end }}