Why not just:
echo "export nm=`pwd`/blog"' >> ~/.profile
. ~/.profile
cd $nm
There's no need for magic when you know how to shell.