all repos — website-hugo @ b42a6b2bc3a9da20a78d08c4d216700d816bdfa5

My personal blog, built with Hugo!

add smol redirector
Marco Andronaco andronacomarco@gmail.com
Sat, 11 Feb 2023 12:48:49 +0100
commit

b42a6b2bc3a9da20a78d08c4d216700d816bdfa5

parent

d4d8188b8e2cb48970fe88def0cfb88b1cfe3557

4 files changed, 29 insertions(+), 0 deletions(-)

jump to
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 }}