Note that we should replace stat(1) with ls(1) and mtime(1)
This commit is contained in:
parent
4d728ab9a8
commit
793a1de02e
1 changed files with 1 additions and 0 deletions
|
|
@ -351,6 +351,7 @@ fn statpost {
|
|||
uri = `{echo $f | sed 's,^'$sitedir',,'}
|
||||
title=`{basename $f | sed 's/^[0-9\-]*_(.*)\.md$/\1/; s/_/ /g' }
|
||||
date=`{/bin/date -Rd `{basename $f |sed 's/(^[0-9\-]*).*/\1/; s/-[0-9]$//'}}
|
||||
# TODO: use mtime(1) and ls(1) instead of lunix's stat(1)
|
||||
stat=`{stat -c '%Y %U' $f}
|
||||
#mdate=`{/bin/date -Rd $stat(1)} # Not used because it is unreliable
|
||||
uri=$baseuri^`{cleanname `{echo -n $uri | sed 's/\.(md|tpl)//g'}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue