Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/frjo/hugo-theme-zen.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAziz <64666452+httpsecure@users.noreply.github.com>2022-09-15 14:38:30 +0300
committerGitHub <noreply@github.com>2022-09-15 14:38:30 +0300
commitcff71bf5f5fdfd3480057c1f7312b56f7495095d (patch)
treeb392d05b9e3ef071b69b05403483eb911adea9e3
parenta4a9729543c367f03444478f7e07f4e1d0d7f2dd (diff)
Create render-link.html
Markdown render hooks for links
-rw-r--r--layouts/_default/_markup/render-link.html1
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>