Trim down a bit of the whitespace

Fixes #76 by moving the <% end %> to the next line ensuring that the newline only gets printed if the if statement passes.

Also includes the = in the external url (to try and avoid a merge conflict, but it'll probably happen regardless)