diff options
author | Aziz <64666452+httpsecure@users.noreply.github.com> | 2022-09-15 14:38:30 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-15 14:38:30 +0300 |
commit | cff71bf5f5fdfd3480057c1f7312b56f7495095d (patch) | |
tree | b392d05b9e3ef071b69b05403483eb911adea9e3 | |
parent | a4a9729543c367f03444478f7e07f4e1d0d7f2dd (diff) |
Create render-link.html
Markdown render hooks for links
-rw-r--r-- | layouts/_default/_markup/render-link.html | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/layouts/_default/_markup/render-link.html b/layouts/_default/_markup/render-link.html new file mode 100644 index 0000000..0d25039 --- /dev/null +++ b/layouts/_default/_markup/render-link.html @@ -0,0 +1 @@ +<a href="{{ .Destination | safeURL }}"{{ with .Title}} title="{{ . }}"{{ end }}{{ if strings.HasPrefix .Destination "http" }} target="_blank" rel="nofollow noopener noreferrer"{{ end }}>{{ .Text | safeHTML }}</a> |