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

github.com/dataCobra/hugo-vitae.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen <datacobra@mailbox.org>2020-11-22 18:52:53 +0300
committerGitHub <noreply@github.com>2020-11-22 18:52:53 +0300
commita1a72503033ba06c6f3a170f064281968c3415a6 (patch)
tree1f00bb247f505ea21335e494339e0c55b0144e94
parentb29bf36703d24f433199f56c363311cbf37f3a6a (diff)
parent478e476b3f211572b5a82bffabce79dc18867fbf (diff)
Merge pull request #37 from nardoyala/master
Links with target _blank as default
-rw-r--r--layouts/_default/_markup/render-link.html3
1 files changed, 3 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..3c0743a
--- /dev/null
+++ b/layouts/_default/_markup/render-link.html
@@ -0,0 +1,3 @@
+<a href="{{ .Destination | safeURL }}"{{ with .Title}} title="{{ . }}"{{ end }}{{ if strings.HasPrefix .Destination "http" }} target="_blank"{{ end }}>
+ {{ .Text }}
+</a> \ No newline at end of file