Use correct post title in rss feeds.
This commit is contained in:
parent
e66f3666ac
commit
c93ed867af
@ -7,7 +7,8 @@ fn statpost {
|
|||||||
f = $1
|
f = $1
|
||||||
|
|
||||||
post_uri = `{echo $f | sed 's,^'$sitedir',,'}
|
post_uri = `{echo $f | sed 's,^'$sitedir',,'}
|
||||||
title=`{basename $f | sed 's/^[0-9\-]*_(.*)\.md$/\1/; s/_/ /g' }
|
#title=`{basename $f | sed 's/^[0-9\-]*_(.*)\.md$/\1/; s/_/ /g' }
|
||||||
|
title=`{read $f/index.md}
|
||||||
date=`{/bin/date -Rd `{echo $f|sed 's,.*/([0-9][0-9][0-9][0-9]/[0-9][0-9]/[0-9][0-9])/.*,\1,'}}
|
date=`{/bin/date -Rd `{echo $f|sed 's,.*/([0-9][0-9][0-9][0-9]/[0-9][0-9]/[0-9][0-9])/.*,\1,'}}
|
||||||
# TODO: use mtime(1) and ls(1) instead of lunix's stat(1)
|
# TODO: use mtime(1) and ls(1) instead of lunix's stat(1)
|
||||||
stat=`{stat -c '%Y %U' $f}
|
stat=`{stat -c '%Y %U' $f}
|
||||||
|
Loading…
Reference in New Issue
Block a user