Add the ability to choose if links on project cards open in a new tab
This commit is contained in:
parent
0a8507401c
commit
454d4c1dc8
2 changed files with 15 additions and 1 deletions
|
|
@ -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 }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue