Minor correction to atom and rss link urls.
This commit is contained in:
parent
bab24f9cdf
commit
ef3eeca673
2 changed files with 2 additions and 2 deletions
|
|
@ -8,7 +8,7 @@ fn statpost {
|
||||||
f = $1
|
f = $1
|
||||||
|
|
||||||
updated = `{/bin/date --rfc-3339'=seconds' -r $f |tr ' ' 'T'}
|
updated = `{/bin/date --rfc-3339'=seconds' -r $f |tr ' ' 'T'}
|
||||||
post_uri=$base_url^`{cleanname `{echo $f | sed -e 's!^'$sitedir'!!' -e 's/\.(md|tpl)$//g'}}
|
post_uri=$base_url^`{cleanname `{echo $f | sed -e 's!^'$sitedir'!!'}}^'/'
|
||||||
title=`{read $f/index.md}
|
title=`{read $f/index.md}
|
||||||
# Not used: date=`{/bin/date -Rd `{basename $f |sed 's/(^[0-9\-]*).*/\1/; s/-[0-9]$//'}}
|
# Not used: 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)
|
# TODO: use mtime(1) and ls(1) instead of lunix's stat(1)
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ fn statpost {
|
||||||
# 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}
|
||||||
#mdate=`{/bin/date -Rd $stat(1)} # Not used because it is unreliable
|
#mdate=`{/bin/date -Rd $stat(1)} # Not used because it is unreliable
|
||||||
post_uri=$base_url^`{cleanname `{echo -n $post_uri | sed 's/\.(md|tpl)//g'}}
|
post_uri=$base_url^`{cleanname `{echo $f | sed -e 's!^'$sitedir'!!'}}^'/'
|
||||||
by=$stat(2)
|
by=$stat(2)
|
||||||
ifs=() { summary=`{cat $f/index.md | $formatter | escape_html} }
|
ifs=() { summary=`{cat $f/index.md | $formatter | escape_html} }
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue