帕格图像作为一个链接

Lou*_*ian 4 node.js pug

你如何在Pug中创建一个链接,我试过了

   a(href='https://github.com/LouieAdamian') img(src="/img/GitHub.png")
Run Code Online (Sandbox Code Playgroud)

img(src="/img/GitHub.png")
a(href='https://github.com/LouieAdamian')
Run Code Online (Sandbox Code Playgroud)

a(href='https://github.com/LouieAdamian')
img(src="/img/GitHub.png")
Run Code Online (Sandbox Code Playgroud)

这些都不起作用我以太结束了文本img(src="/img/GitHub.png")作为链接或根本没有链接.

lui*_*ike 10

这条路:

a(href='https://github.com/LouieAdamian')
  img(src="/img/GitHub.png")
Run Code Online (Sandbox Code Playgroud)