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:
Diffstat (limited to 'layouts/_default/_markup/render-link.html.example')
-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>