how do you make an image a link in Pug I've tried
a(href='https://github.com/LouieAdamian') img(src="/img/GitHub.png")
and
img(src="/img/GitHub.png")
a(href='https://github.com/LouieAdamian')
and
a(href='https://github.com/LouieAdamian')
img(src="/img/GitHub.png")
none of these worked I ether ended up with the text img(src="/img/GitHub.png")
as the link or no link at all.
This way (the indent is necessary):
a(href='https://github.com/LouieAdamian')
img(src="/img/GitHub.png")
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With