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:
authorFredrik Jonsson <frjo@xdeb.org>2022-09-16 17:16:53 +0300
committerGitHub <noreply@github.com>2022-09-16 17:16:53 +0300
commit851ef7952761c74217ef1d9fa2a721b6b9664b88 (patch)
tree89d25264c8fb935335581885c0bae5d5f64a23a2
parenta4a9729543c367f03444478f7e07f4e1d0d7f2dd (diff)
parentd1cecf061c261822b53f3252ac13ce9b6fc13630 (diff)
Merge pull request #66 from httpsecure/patch-1
Create render-link.html
-rw-r--r--layouts/_default/_markup/render-link.html.example1
1 files changed, 1 insertions, 0 deletions
diff --git a/layouts/_default/_markup/render-link.html.example b/layouts/_default/_markup/render-link.html.example
new file mode 100644
index 0000000..69a1c1a
--- /dev/null
+++ b/layouts/_default/_markup/render-link.html.example
@@ -0,0 +1 @@
+<a href="{{ .Destination | safeURL }}"{{ with .Title}} title="{{ . }}"{{ end }}{{ if strings.HasPrefix .Destination "http" }} target="_blank" rel="noopener noreferrer"{{ end }}>{{ .Text | safeHTML }}</a>