From 8d210d7a362b772d41c9a5c81822e0725a505f6b Mon Sep 17 00:00:00 2001 From: Tracey Jaquith Date: Sat, 25 Jan 2025 23:25:41 -0800 Subject: [PATCH] [build] comments fix --- bin/sitemap | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/sitemap b/bin/sitemap index 580050b..7b6c41f 100755 --- a/bin/sitemap +++ b/bin/sitemap @@ -1,7 +1,5 @@ #!/bin/zsh -e -mydir=${0:a:h} - if [ ! -e config.yml ]; then echo run this script from the top-level of your repo exit 1 @@ -100,11 +98,12 @@ function rss() { # xxx using snippet?? function comments() { # this helps with efficiency but could be replaced with a lot of requests at runtime in the browser ( - cd $mydir/.. + echo -n Updating comments mkdir -p comments cd comments find . -mindepth 1 -type d |cut -b3- |sort -o index.txt for DIR in $(cat index.txt); do + echo -n . OUT=$DIR/index.json rm -f $OUT jq -rs '. | map(.)' $DIR/*.json \ @@ -112,6 +111,7 @@ function comments() { | jq -s 'flatten(1)' \ > $OUT done + echo ) }