From dcaad8d30a3d407e0f65ac267f0ab267cea39d1b Mon Sep 17 00:00:00 2001 From: Arya Kiran Date: Fri, 9 Sep 2022 18:02:54 +0530 Subject: [PATCH] Make sure feed.xml doesnt show up as a post --- _config.sh | 2 +- pblog.sh | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/_config.sh b/_config.sh index cac08e0..c8d8b86 100644 --- a/_config.sh +++ b/_config.sh @@ -15,7 +15,7 @@ HTML_LANG="en_US" # Your document (HTML) language setting TOC=true SYNTAX=true POSTS_DIR="posts/" -POSTS=$(find $POSTS_DIR -type f) +POSTS=$(find $POSTS_DIR -type f -name *.md) WEB_HTML="blog/" OUTPUT="_output/" TIME=$(date +"%T %Z") diff --git a/pblog.sh b/pblog.sh index 6f44eb9..64544de 100644 --- a/pblog.sh +++ b/pblog.sh @@ -33,7 +33,6 @@ rm $POSTS_DIR*.html # Remove the default blog index to avoid pulling into the XML feed rm $OUTPUT$WEB_HTML/index.html - echo " @@ -45,7 +44,7 @@ echo " $TTL "; -for file in $OUTPUT$WEB_HTML*; do +for file in $OUTPUT$WEB_HTML*.html; do POST_DATE=$(sed -n 's|^

\([^<]*\)

$|\1|p' $file) POST_TITLE=$(sed -n 's|^

\([^<]*\)

$|\1|p' $file)