lugorguk / lug.org.uk-website

Website of the UK Linux User Groups organisation
Creative Commons Zero v1.0 Universal
5 stars 5 forks source link

Template issue: "Contact Address" may contain HTTP URL instead of EMail Address #43

Closed JonTheNiceGuy closed 5 years ago

JonTheNiceGuy commented 5 years ago

Origin: https://github.com/lugorguk/lug.org.uk-website/blob/800e50309d2f7b8993d15fc7f2cf6fb2346145ee/_posts/0000-01-01-Manchester.md Field: "contact" is an HTTP link.

Template: https://github.com/lugorguk/lug.org.uk-website/blob/800e50309d2f7b8993d15fc7f2cf6fb2346145ee/_layouts/lug.html#L16-L18 Code here assumes this will always be an email address. Suggest checking for presence of "http" as first 4 characters, and making a rendering choice based on that.