Rename all posts to ${file}.md

for file in ./*
do
  mv "$file" "${file%.*}.md"
done
Redirect all requests without a trailing slash to the trailing slash version