|
|
|
@ -1,7 +1,6 @@
|
|
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
|
|
source _config.sh
|
|
|
|
|
|
|
|
|
|
###################################################################################
|
|
|
|
|
# !WARNING!
|
|
|
|
|
# You probably don't need to tweak anything below this line. Edit at your own risk!
|
|
|
|
@ -31,8 +30,6 @@ rsync $POSTS_DIR*.html $OUTPUT$WEB_HTML;
|
|
|
|
|
rm $POSTS_DIR*.html
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Remove the default blog index to avoid pulling into the XML feed
|
|
|
|
|
rm $OUTPUT$WEB_HTML/index.html
|
|
|
|
|
echo "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>
|
|
|
|
|
<?xml-stylesheet href=\"rss.xsl\" type=\"text/xsl\"?>
|
|
|
|
|
<rss version=\"2.0\" xmlns:atom=\"http://www.w3.org/2005/Atom\">
|
|
|
|
@ -55,8 +52,8 @@ then
|
|
|
|
|
CAT_DATE=$(gdate -d "$(sed -n 's|^<p class="date">\([^<]*\)</p>$|\1|p' $file)" +"%Y/%m/%d/%u")
|
|
|
|
|
POST_DATE=$(gdate -d "$(sed -n 's|^<p class="date">\([^<]*\)</p>$|\1|p' $file)" +"%a, %d %b %Y")
|
|
|
|
|
else
|
|
|
|
|
CAT_DATE=$(date -d "$(sed -n 's|^<p class="date">\([^<]*\)</p>$|\1|p' $file)" +"%Y/%m/%d/%u")
|
|
|
|
|
POST_DATE=$(date -d "$(sed -n 's|^<p class="date">\([^<]*\)</p>$|\1|p' $file)" +"%a, %d %b %Y")
|
|
|
|
|
CAT_DATE=$(date -u -d "$(sed -n 's|^<p class="date">\([^<]*\)</p>$|\1|p' $file)" +"%Y/%m/%d/%u")
|
|
|
|
|
POST_DATE=$(date -u -d "$(sed -n 's|^<p class="date">\([^<]*\)</p>$|\1|p' $file)" +"%a, %d %b %Y")
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
echo "<item>
|
|
|
|
|