From 361c30c58977373be3615ae8bea9f04854362404 Mon Sep 17 00:00:00 2001 From: uriel Date: Sun, 24 Jun 2007 01:21:17 +0200 Subject: [PATCH] Limite the length of descs and factor into sep function --- pub/sitemap.tpl | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/pub/sitemap.tpl b/pub/sitemap.tpl index 7902b8f..0ea01be 100644 --- a/pub/sitemap.tpl +++ b/pub/sitemap.tpl @@ -7,6 +7,10 @@ cpath = '' rpath = `{pwd} rpath = $rpath^'/'^$sitedir +fn getMdDesc { + sed 's/^(.......................................................................................................[^ ]*).*$/\1/g; 1q' < $1 +} + fn listDir { cd $1 dirfilter = $saveddf @@ -14,17 +18,17 @@ fn listDir { . _config echo '