diff --git a/scripts/build-website.sh b/scripts/build-website.sh index b721056..9e24c3e 100755 --- a/scripts/build-website.sh +++ b/scripts/build-website.sh @@ -53,7 +53,8 @@ cat \ <( for ((i=1;i<10;i++)) do - export padint=$( printf %03d $(( CONTENTNUM -i )) ) + padint=$( printf %03d $(( CONTENTNUM -i )) ) + export padint cat \ <( head -n $(( itemlinereplace -1 )) .rss.item.template | @@ -61,12 +62,13 @@ cat \ perl -pe 's/TITLE/$ENV{title}/; s/CURRENTINT/$ENV{padint}/' ) \ <( - printf '' \ + "$( cat content-$padint quote-$padint | tidy -q -asxhtml | sed '2 s/xmlns=".*"//g' | - xmllint --noblanks --xpath '//body' - \ - )"']]>' + xmllint --noblanks --xpath '//body' - + )" ) \ <( tail -n +$(( itemlinereplace +1 )) .rss.item.template |