mirror of
https://github.com/mrrpnya/lipu-sona.git
synced 2025-02-13 16:44:39 +00:00
use git commit dates for blog modification times (more consistent)
This commit is contained in:
parent
ff7b299d99
commit
cfb9fd4750
2 changed files with 3 additions and 2 deletions
|
@ -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#"% "}
|
||||
|
|
|
@ -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#"% "}
|
||||
|
|
Loading…
Add table
Reference in a new issue