diff options
Diffstat (limited to 'themes/hugo-theme-stack/layouts/_default/_markup/render-link.html')
-rw-r--r-- | themes/hugo-theme-stack/layouts/_default/_markup/render-link.html | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/themes/hugo-theme-stack/layouts/_default/_markup/render-link.html b/themes/hugo-theme-stack/layouts/_default/_markup/render-link.html new file mode 100644 index 0000000..843854d --- /dev/null +++ b/themes/hugo-theme-stack/layouts/_default/_markup/render-link.html @@ -0,0 +1,3 @@ +<a class="link" href="{{ .Destination | safeURL }}" {{ with .Title}} title="{{ . }}" + {{ end }}{{ if strings.HasPrefix .Destination "http" }} target="_blank" rel="noopener" + {{ end }}>{{ .Text | safeHTML }}</a>
\ No newline at end of file |