Keep linkData in scope long enough to use it

fixes #1170 on github.

linkData was no longer in scope, so the template value {{ linkData.contact }} was always empty.
Cleanup template branching
Merge pull request #1203 from steventlamb/bug/1170_contact_email

Bug/1170 contact email