diff options
Diffstat (limited to 'makerss.sh')
-rwxr-xr-x | makerss.sh | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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}"; |