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)