diff --git a/blogindex.sh b/blogindex.sh index 9d757d1..be94065 100755 --- a/blogindex.sh +++ b/blogindex.sh @@ -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#"% "} diff --git a/blogrss.sh b/blogrss.sh index 316fc2a..11fe5c4 100755 --- a/blogrss.sh +++ b/blogrss.sh @@ -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#"% "}