commit 8132a5b96b64eb6913603ec1d77c548109801589
parent b88e8453567e66bb45439f7ba9ddaee016c202ba
Author: uriel@soma <unknown>
Date: Fri, 20 Feb 2009 23:15:08 +0000
Minor correction to atom and rss link urls.
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/apps/blagh/atom.tpl b/apps/blagh/atom.tpl
@@ -8,7 +8,7 @@ fn statpost {
f = $1
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}
# 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)
diff --git a/apps/blagh/rss20.tpl b/apps/blagh/rss20.tpl
@@ -13,7 +13,7 @@ fn statpost {
# 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
- 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)
ifs=() { summary=`{cat $f/index.md | $formatter | escape_html} }
}