wowana.me

website source


commit 43fcf0bfb877615679cbeb8474cf5ee74585619d
parent eb88a14df8f9dc8fa17cdd9699b6b7f40adb1d25
Author: opal hart <opal@wowana.me>
Date:   Tue,  9 Mar 2021 02:52:48 +0000

add canonical/onion-location headers

TODO: fix how /git pages get canonicalised

Diffstat:
Mscripts/postproc | 8+++++++-
1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/scripts/postproc b/scripts/postproc @@ -11,11 +11,17 @@ if test -n "$date"; then fi title="$(pup -p <"$filename" 'h1 text{}')" +localpart="${filename#src/}" +localpart="${localpart%.part.xht}.xht" + if test -n "$title"; then sed <src/header.inc "s<opal hart / wowaname<$title – wowana.me<" else cat <src/header.inc -fi +fi | + sed \ + -es%'<link rel="canonical" href="https://wowana.me/'%"&$localpart"% \ + -es%'<meta http-equiv="onion-location" content="http://opalwxdqzyuwo2vbipp3facjuuztfjwauai7fghh2ggbcl7enuvfg6yd.onion/'%"&$localpart"% <"$filename" sed \ -e"1i <main>" \