summaryrefslogtreecommitdiff
path: root/compile-md.sh
diff options
context:
space:
mode:
Diffstat (limited to 'compile-md.sh')
-rwxr-xr-xcompile-md.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/compile-md.sh b/compile-md.sh
index c02e692..547408b 100755
--- a/compile-md.sh
+++ b/compile-md.sh
@@ -35,4 +35,7 @@ else
cat templates/page-footer.html >> $out
fi
+# update <a> tags that are external vs internal - assumes all internal links us relative routes
+sed -E -i "s/(<a)(.+href=\"http.+\".+>)/\1 rel=\"external noopener noreferrer\" target=\"_blank\" \2/g" $out
+
./tidy.sh $out