diff options
author | Olivier DOSSMANN <git@dossmann.net> | 2017-07-05 18:37:10 +0300 |
---|---|---|
committer | Olivier DOSSMANN <git@dossmann.net> | 2017-07-05 18:37:10 +0300 |
commit | b32356b883442b58fddae5251855d529a5766c2a (patch) | |
tree | 0cb2864c9ebdde6a5e1434f5cfaa5cb9ad7d147c | |
parent | f193cdd32539c422bf1a6afea0d5f6836244d6bf (diff) |
Open remote link to a new tab
-rw-r--r-- | layouts/shortcodes/remote.html | 6 |
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 }} |