Added a semi smart linking directive, will probably change it soon.
If you put a '~' right after the quotation in a href, it will replace
the ~ with the sub domain of the site. There is a flag for production
and development.