so far my homepage didn't get updates too often, and I doubt this will change. But I decided to move everything to a blog. My homepage was arranged similar to a blog eversince, and now I moved most of the old articles into the blog history, and I dated them back to when I believe I wrote that sentence.
I tried to keep my old design, and I think it was pretty simple to achieve that, thanks to blosxom. The RSS-feed is linked under "feed" on the left.
As blog software I use blosxom, which is a single file perl cgi - just the way I like it ;)
It doesn't use a (real) DB in the back, the filesystem's timestamps are used to date and sort the postings. Blosxom features plugins, and I use
I consider the last plugin an experiment. It allows you to comment my postings. If i find myself hosting more blogspam than I am willing to delete every day/week/month I will remove that feature.
To write and post articles I hacked a small script, that allows me also to update older postings while keeping the date, and shows up new categories or postings in red (for a second), while existing ones flash up in green:
#!/bin/sh
BLOGROOT="$HOME/htdocs/BLOG"
# touch likes the date format as [[CC]YY]MMDDhhmm[.SS]
NOW=`/usr/bin/date +%C%y%m%d%H%M.%S`
CATEGORY=$1
POST=$2.blog
NO_COLOR="^[[0m"
if [ -d "`/usr/bin/dirname $BLOGROOT/$CATEGORY/$POST`" ] ; then
CATEGORY_COLOR="^[[1;32m"
else
CATEGORY_COLOR="^[[1;31m"
/usr/bin/mkdir -p $BLOGROOT/$CATEGORY
fi
# when we update an existing post we keep the date...
if [ -e $BLOGROOT/$CATEGORY/$POST ] ; then
POST_TIME=`/usr/bin/date -r $BLOGROOT/$CATEGORY/$POST +%C%y%m%d%H%M.%S`
UPDATE="1"
POST_COLOR="^[[1;32m"
else
POST_TIME=$NOW
POST_COLOR="^[[1;31m"
fi
echo ""
echo "posting /$CATEGORY_COLOR$CATEGORY$NO_COLOR/$POST_COLOR$POST$NO_COLOR at ^[[1;30m$POST_TIME^[[0m"
echo ""
# time to percept
/usr/bin/sleep 1
if [ "$UPDATE" == "1" ] ; then
/usr/bin/vim -s $BLOGROOT/blog_update_vim_helper +"set syntax=html" $BLOGROOT/$CATEGORY/$POST
else
/usr/bin/vim +"set syntax=html" $BLOGROOT/$CATEGORY/$POST
fi
if [ -e $BLOGROOT/$CATEGORY/$POST ] ; then
/usr/bin/touch -t $POST_TIME $BLOGROOT/$CATEGORY/$POST
fi
# append your rsync/scp/ftp/whatever command to update the blog files on
# the webserver (if necessary)
# blog-update
echo "Please run \" blogupdate \" yourself!"
The script shows the nice means of vim to execute commands "remotely" from the commandline. Here's the blog_update_vim_helper script:
GA
<b>Update:</b>
I think that's all I have to say for now. Update: Oh, yes, and let me know if you think somthing's wrong with my blog or homepage!