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

github.com/blankoworld/hugo_theme_adam_eve.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier DOSSMANN <git@dossmann.net>2017-07-05 18:37:10 +0300
committerOlivier DOSSMANN <git@dossmann.net>2017-07-05 18:37:10 +0300
commitb32356b883442b58fddae5251855d529a5766c2a (patch)
tree0cb2864c9ebdde6a5e1434f5cfaa5cb9ad7d147c
parentf193cdd32539c422bf1a6afea0d5f6836244d6bf (diff)
Open remote link to a new tab
-rw-r--r--layouts/shortcodes/remote.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/layouts/shortcodes/remote.html b/layouts/shortcodes/remote.html
index f4661e7..8105da7 100644
--- a/layouts/shortcodes/remote.html
+++ b/layouts/shortcodes/remote.html
@@ -1,7 +1,7 @@
{{ if len .Params | eq 2 }}
-<a class="remote" href="{{ .Get 1 }}">{{ .Get 0 }}</a>
+<a class="remote" href="{{ .Get 1 }}" target="_blank">{{ .Get 0 }}</a>
{{ else if len .Params | eq 3 }}
- <a class="remote" href="{{ .Get 1 }}" title="{{ .Get 2 }}">{{ .Get 0 }}</a>
+ <a class="remote" href="{{ .Get 1 }}" title="{{ .Get 2 }}" target="_blank">{{ .Get 0 }}</a>
{{ else }}
- <a class="remote" href="{{ .Get 0 }}">{{ .Get 0 }}</a>
+ <a class="remote" href="{{ .Get 0 }}" target="_blank">{{ .Get 0 }}</a>
{{ end }}