From 0f3293ce2a9d9563087bb00b29db31aa1f06f961 Mon Sep 17 00:00:00 2001 From: eudoxia Date: Fri, 11 Dec 2020 18:38:55 -0500 Subject: fixed sitemap injection behaviour, fixed reload.sh sequencing, other misc improvements --- md.sh | 12 +++++++----- reload.sh | 8 ++++---- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/md.sh b/md.sh index 224de56..afdce35 100755 --- a/md.sh +++ b/md.sh @@ -5,9 +5,9 @@ set -e # ./md.sh # ./md.sh # -# input: /src.md ; ./md-header ; ./md-footer +# input: /src.md ./md-header ./md-footer /nav.html # output: /index.html -# dependencies: lowdown, fzf, ./urlencode +# dependencies: lowdown fzf ./urlencode # Copyright 2019-2020 DistressNetwork° # @@ -86,9 +86,11 @@ METADESC="\«\;${BOMBER}\»\; \&mdash\; ${LEADING}" sed "s;' $OUT | cut -f 1 -d :) -sed "${NAVLINE}r distress.network/nav.html" -i'' $OUT -printf '[ok] sitemap\n' +if [ -f $(echo $IN | cut -f 1 -d /)/nav.html ] ; then +NAVLINE=$(grep -n '