display date the american way because that makes more sense for the blog-index

This commit is contained in:
Lucy 2020-07-18 23:01:14 +02:00
parent ce337cf373
commit a172ac644f

View File

@ -72,7 +72,7 @@ create_entry() {
# then add it to the index
title=$(grep -h '<title>' "dist/$outpath" | sed 's/<title>//g;s/<\/title>//g')
created=$(grep -h '^date: ' "$path" | sed 's/date: //g')
created_date=$(date +%x --date="$created")
created_date=$(date +'%b %d, %Y' --date="$created")
html_entry "$outpath" "$created_date" "$title"
rss_entry "$title" "$outpath" $path $created
}