Skip to content

Commit

Permalink
only process .md posts
Browse files Browse the repository at this point in the history
  • Loading branch information
crvs committed Dec 29, 2019
1 parent 2d95331 commit dc7130b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion makeposts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit dc7130b

Please sign in to comment.