use git commit dates for blog modification times (more consistent)

This commit is contained in:
/dev/urandom 2020-08-21 11:05:19 +03:00
parent ff7b299d99
commit cfb9fd4750
2 changed files with 3 additions and 2 deletions

View file

@ -7,7 +7,8 @@ FILES=`ls $DIRECTORY/*.md -1t`
cat tpl/blog_header.md
for f in $FILES; do
MTIME=`stat -c %Y $f`
MTIME=`git log -n 1 --pretty=format:%at $f`
TITLE=`head -n 1 $f`
TITLE=${TITLE#"% "}

View file

@ -14,7 +14,7 @@ cat << RSSHEADER
RSSHEADER
for f in $FILES; do
MTIME=`stat -c %Y $f`
MTIME=`git log -n 1 --pretty=format:%at $f`
TITLE=`head -n 1 $f`
TITLE=${TITLE#"% "}