From 3c055d4d579a0b78a9a9ebc622cec32037e958ac Mon Sep 17 00:00:00 2001 From: Bill Date: Sat, 5 Nov 2022 21:00:40 -0400 Subject: Add external props to compiled MD files Comes with some minor changes to the wishlist page --- compile-md.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'compile-md.sh') 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 tags that are external vs internal - assumes all internal links us relative routes +sed -E -i "s/()/\1 rel=\"external noopener noreferrer\" target=\"_blank\" \2/g" $out + ./tidy.sh $out -- cgit v1.2.3-54-g00ecf