summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick White <git@njw.me.uk>2010-04-20 17:36:48 +0100
committerNick White <git@njw.me.uk>2010-04-20 17:36:48 +0100
commitfc60efe7574de323e40b59627b8d2393b43cb718 (patch)
tree3c46d1f83995818b6cc1aa692b7c4de9b622a15b
parent29fc79e8ea643cd7ff128708211a2c72effe96bb (diff)
downloadnjw-website-fc60efe7574de323e40b59627b8d2393b43cb718.tar.bz2
njw-website-fc60efe7574de323e40b59627b8d2393b43cb718.zip
Correct rss script
-rwxr-xr-xmakerss.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/makerss.sh b/makerss.sh
index 653bbb2..2396542 100755
--- a/makerss.sh
+++ b/makerss.sh
@@ -18,19 +18,19 @@ cat << EOF
dc:creator <${creator}>;
cc:license <http://creativecommons.org/licenses/by-sa/3.0/>;
- rss:items (
+ rss:items [ a rdf:Seq;
EOF
for item in $items; do
- echo " <${siteurl}${item}>"
+ echo " rdf:li <${siteurl}${item}>;"
done
-echo " )."
+echo " ]."
for item in $items; do
title=`head -n 1 ./${item}.txt`
- moddate=`ls -lc ./${item}.txt|awk '{print $6}'`
- link="${siteurl}${item}"
+ moddate=`ls -lc --time-style=+%Y-%m-%d ./${item}.txt|awk '{print $6}'`
+ link="${siteurl}${item}"
cat << EOF
<${link}> a rss:item;
rss:title "${title}";