Fix for tag links in posts

this closes #36 if accepted. :-)

Anyway scripts.js could get more love soon, we could encapsulate common conditions and functionality