From 46d61d79b9e73c51d12c6dab0d1044feb645e313 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Mon, 4 Jun 2007 20:41:42 +0200 Subject: [PATCH] Wrap the RSS description in
 tags. Fix summary. (should
 run the description through fmt(1), since *some* people insist on using
 WordPress, which doesn't hard wrap paragraphs).

---
 bin/controller.rc | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/bin/controller.rc b/bin/controller.rc
index b05e76d..cd12e7e 100755
--- a/bin/controller.rc
+++ b/bin/controller.rc
@@ -25,7 +25,7 @@ fn gentitle {
     echo '

' ^ $"siteTitle ^ '' ^ $"siteSubTitle ^ '

' } -dirfilter = '/\/\./d; /\/_[^\/]*$/d; s,^\./,,; s,\.md$,,;' +dirfilter = '/\/[._]/d; s,^\./,,; s,\.md$,,;' # Sidebar fn menu { @@ -130,7 +130,7 @@ fn statpost { title=`{basename $f | sed 's/^[0-9\-]*_(.*)\.md$/\1/; s/_/ /g' } stat=`{stat -c '%Y %U' $f} date=`{/bin/date -Rd @$stat(1)} - uri=$baseuri^`{cleanname $uri} + uri=$baseuri^`{cleanname `{echo -n $uri | sed 's/\.(md|tpl)//g'}} by=$stat(2) ifs=() { summary=`{awk -v max'='1024 '{ @@ -186,7 +186,7 @@ Content-Type: text/xml; charset=utf-8 %($uri%) %($uri%) %($date%) - + %($summary%)
]]> % }