Add the ability to choose if links on project cards open in a new tab

This commit is contained in:
NeilBrommer 2018-06-12 11:32:42 -07:00
parent 0a8507401c
commit 454d4c1dc8
2 changed files with 15 additions and 1 deletions

View file

@ -11,7 +11,11 @@
{{ if isset . "links" }}
{{ range .links }}
<a class="card-link" href="{{ .URL }}" target="_blank">
<a class="card-link" href="{{ .URL }}"
{{ if and (isset . "external") (eq .external true) }}
target="_blank"
{{ end }}
>
{{ .title }}
</a>
{{ end }}