Skip to content
Snippets Groups Projects
Commit c3ef29d3 authored by alexisben's avatar alexisben
Browse files
parents ccfbfeac 2578d384
No related branches found
No related tags found
No related merge requests found
...@@ -12,6 +12,8 @@ ...@@ -12,6 +12,8 @@
@include handle-svg-fit @include handle-svg-fit
order: -1 order: -1
margin-bottom: $spacing1 margin-bottom: $spacing1
&:empty
display: none
img img
display: block display: block
aspect-ratio: 16/9 aspect-ratio: 16/9
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
{{ partial "head/csp.html" }}
{{ partial "head/css.html" }} {{ partial "head/css.html" }}
{{ partial "head/seo.html" . }} {{ partial "head/seo.html" . }}
{{ partial "head/favicons.html" . }} {{ partial "head/favicons.html" . }}
......
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
{{- with .block.data -}} {{- with .block.data -}}
{{- $layout := .layout -}} {{- $layout := .layout -}}
{{- $with_link := .with_link -}}
{{- if $layout -}} {{- if $layout -}}
{{- $layout_class = printf "block-partners--%s" $layout -}} {{- $layout_class = printf "block-partners--%s" $layout -}}
...@@ -38,6 +39,7 @@ ...@@ -38,6 +39,7 @@
{{- partial (printf "blocks/templates/partners/%s.html" $layout) (dict {{- partial (printf "blocks/templates/partners/%s.html" $layout) (dict
"partners" .partners "partners" .partners
"logo_index" $logo_index "logo_index" $logo_index
"with_link" $with_link
) }} ) }}
</div> </div>
</div> </div>
...@@ -51,7 +53,7 @@ ...@@ -51,7 +53,7 @@
{{ if .title }} {{ if .title }}
{{ $title = partial "PrepareHTML" .title -}} {{ $title = partial "PrepareHTML" .title -}}
<h3> <h3>
{{- if .url }} {{- if and .url .with_link }}
<a href="{{ .url }}" {{ if .external }} target="_blank" rel="noopener" {{ end }} 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 -}} {{ end -}}
{{- $title -}} {{- $title -}}
......
{{ $logo_index := .logo_index }} {{ $logo_index := .logo_index }}
{{ $with_link := .with_link }}
<div class="grid organizations"> <div class="grid organizations">
{{- range .partners }} {{- range .partners }}
...@@ -8,6 +9,7 @@ ...@@ -8,6 +9,7 @@
"title" .Title "title" .Title
"url" .Permalink "url" .Permalink
"logo" (index .Params $logo_index) "logo" (index .Params $logo_index)
"with_link" $with_link
)}} )}}
{{ end }} {{ end }}
{{ else }} {{ else }}
...@@ -16,6 +18,7 @@ ...@@ -16,6 +18,7 @@
"url" .url "url" .url
"external" true "external" true
"logo" .logo "logo" .logo
"with_link" $with_link
)}} )}}
{{ end }} {{ end }}
{{ end -}} {{ end -}}
......
{{- with site.Data.website.external_domains -}}
<meta
http-equiv="Content-Security-Policy"
content="default-src 'self' {{ delimit . " " }} {{ if not hugo.IsProduction }}'unsafe-inline'{{ end }}" />
{{- end -}}
\ No newline at end of file
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