mirror of
https://github.com/nunocoracao/blowfish.git
synced 2025-04-20 19:01:52 +02:00
Merge pull request #87 from nunocoracao/86-external-links-should-open-in-a-new-tab-by-default
make external links open by default on a new tab
This commit is contained in:
commit
27412dbb1a
1 changed files with 3 additions and 0 deletions
3
layouts/_default/_markup/render-link.html
Normal file
3
layouts/_default/_markup/render-link.html
Normal file
|
@ -0,0 +1,3 @@
|
|||
<a href="{{ .Destination | safeURL }}" {{ with .Title}} title="{{ . }}"{{ end }} {{ if or (strings.HasPrefix .Destination "http:") (strings.HasPrefix .Destination "https:") }} target="_blank"{{ end }}>
|
||||
{{ .Text | safeHTML }}
|
||||
</a>
|
Loading…
Add table
Reference in a new issue