We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ad06a9 commit 1455a43Copy full SHA for 1455a43
layouts/_default/_markup/render-link.html
@@ -1 +1,6 @@
1
+<!--
2
+ create hook for links that adds target=_blank to external links ending in .pdf
3
+ for any external pdf links, open the pdf to a new tab
4
+ https://gohugo.io/getting-started/configuration-markup/#link-with-title-markdown-example
5
+-->
6
<a href="{{ .Destination | safeURL }}"{{ with .Title}} title="{{ . }}"{{ end }}{{ if (strings.HasSuffix .Destination ".pdf") }} target="_blank"{{ end }}>{{ .Text }}</a>
0 commit comments