commit 9e54799ea0ff5290993d7510627a53cb070fc3ba
parent fcfa866eb9b56cadc0527cdb1fec3e87a6e3c2e1
Author: erai <erai@omiltem.net>
Date: Wed, 17 Apr 2024 22:31:41 -0400
link canonical
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/render.sh b/render.sh
@@ -11,6 +11,7 @@ title="asdf — Omiltem"
thumbnail="https://omiltem.net/about/pfp.jpg"
description=""
copyright="2024"
+canonical="$(echo "https://omiltem.net/$1" | sed -e 's/\/index.html$/\//')"
eval "$(sed -e '/^$/,$d' "$1")"
@@ -33,6 +34,7 @@ cat << EOF
<meta property="og:title" content="${title}">
<meta property="og:description" content="${description}">
<meta name="description" content="${description}">
+ <link rel="canonical" href="${canonical}">
<link rel="shortcut icon" type="image/png" href="data:image/png;base64,$(base64 -w0 favicon.png)">
<style>$(cat css/style.css)</style>
$(sed -ne '/<head>/,/<\/head>/p' "$1" | sed -e '1d;$d')