Skip to content
Snippets Groups Projects
Commit bce3865b authored by alexisben's avatar alexisben
Browse files

hotfix block partners external link

parent d3d2ce5d
No related branches found
No related tags found
No related merge requests found
......@@ -9,3 +9,9 @@
@include grid(3, lg)
@include grid(4, xl)
grid-column-gap: half($grid-gutter) !important
.organization
a[target="_blank"]
@include stretched-link(before)
@include icon(link-blank, after, true)
position: relative
......@@ -38,6 +38,7 @@
{{ template "partner" (dict
"title" .name
"url" .url
"external" true
"logo" .logo
)}}
{{ end }}
......@@ -55,7 +56,7 @@
{{ $title = partial "PrepareHTML" .title -}}
<h3>
{{- if .url }}
<a href="{{ .url }}" title="{{ safeHTML (i18n "commons.link.blank_aria" (dict "Title" $title)) }}">
<a href="{{ .url }}" {{ if .external }} target="_blank" rel="noopener" {{ end }} title="{{ safeHTML (i18n "commons.link.blank_aria" (dict "Title" $title)) }}">
{{ end -}}
{{- $title -}}
{{- if .url }}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment