pdssg

Pandoc static site generator
git clone https://git.torresjrjr.com/pdssg.git
Log | Files | Refs | README | LICENSE

commit f527127a38490009d909eeaab38a3fe09f68b027
parent 8d51e5884d2af3f3a733b048fb04da0f7df29e74
Author: Byron Torres <b@torresjrjr.com>
Date:   Thu, 10 Feb 2022 01:26:30 +0000

Don't insert contents into Atom feed

Diffstat:
Mpdssg | 15---------------
1 file changed, 0 insertions(+), 15 deletions(-)

diff --git a/pdssg b/pdssg @@ -231,21 +231,6 @@ make_atom_feed() { rm -v ${atom_seed} cat ${atom_out} > ${TMP_DIR}/atom.xml - echo "Inserting contents" - - posts_reverse=$(echo ${posts_dir}/*/index.html | sed 's/ /\n/g' | sort -r) - for post in ${posts_reverse} - do - env printf 'Inserting: %s\n' "${post}" - - sed -n '/<!--CONTENT-->/,$!p' ${TMP_DIR}/atom.xml > ${TMP_DIR}/before.xml - sed -n '/<article>/,/<\/article>/p' "${post}" > ${TMP_DIR}/content.xml - sed -n '1,/<!--CONTENT-->/!p' ${TMP_DIR}/atom.xml > ${TMP_DIR}/after.xml - - cat ${TMP_DIR}/before.xml ${TMP_DIR}/content.xml ${TMP_DIR}/after.xml \ - > ${TMP_DIR}/atom.xml - done - echo "Finishing feed" cat ${TMP_DIR}/atom.xml > ${atom_out} }