diff --git a/README.md b/README.md index 77fe709..dbcddcc 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ This is a simple static html blog generator using only 278 lines (as of this sub ## Organization -Posts are placed within the `posts` directory and are written in markdown. +Posts are placed within the `posts` directory and are written in markdown, and have `.md` extension (anything else can be used to effectively save drafts inplace, for example). Each post begins with a metadata section delimited by lines containing nothing but dashes. diff --git a/makeposts.sh b/makeposts.sh index 5e1f2d2..7d8c7f3 100755 --- a/makeposts.sh +++ b/makeposts.sh @@ -75,7 +75,7 @@ htmlbody=`mktemp` postmanifest=`mktemp` -for file in `ls -1 posts`; +for file in `ls -1 posts/*.md`; do outfile=${file%%.md}.html