all repos — website-hugo @ b8aa9c0c9a531b8e5ad6958b84d05711d860e120

My personal blog, built with Hugo!

better redirects
Marco Andronaco andronacomarco@gmail.com
Sat, 11 Feb 2023 13:14:02 +0100
commit

b8aa9c0c9a531b8e5ad6958b84d05711d860e120

parent

b42a6b2bc3a9da20a78d08c4d216700d816bdfa5

4 files changed, 7 insertions(+), 5 deletions(-)

jump to
M archetypes/smol.mdarchetypes/smol.md

@@ -1,6 +1,7 @@

+++ draft = false +title = "Redirecting..." slug = "{{ .Name }}" redirect = "https://" +++ -CONTENT NOT RENDERED +"smol" URL shortener
M content/smol/cv.mdcontent/smol/cv.md

@@ -1,6 +1,7 @@

+++ -draft = false +draft = true +title = "Resume" slug = "cv" redirect = "https://mega.nz/file/NQ40FRIC#7LF_0OoR5yJzos51UIffOCEiovQetghXh0_cw_31Y6c" +++ -CONTENT NOT RENDERED +"smol" URL shortener
M content/smol/tesi.mdcontent/smol/tesi.md

@@ -1,6 +1,7 @@

+++ draft = false +title = "Tesi" slug = "tesi" redirect = "https://mega.nz/file/JFwEWYZA#Uk6EF8QLyuvaxE9r389ufqXhwGiOC8GNbwLujP4YhlU" +++ -CONTENT NOT RENDERED +"smol" URL shortener
M layouts/smol/single.htmllayouts/smol/single.html

@@ -1,5 +1,4 @@

{{ define "main" }} -{{ if not (.Draft) }}<meta http-equiv="Refresh" content="0; url='{{ .Params.redirect }}'" />{{ end }} <main> <article> <h1 class="title">Redirecting...</h1>