Skip to content
Snippets Groups Projects
Unverified Commit 4acdc764 authored by Alexis BENOIT's avatar Alexis BENOIT Committed by GitHub
Browse files

Email itemprop (#810)

parent d0f5371a
No related branches found
Tags v7.2.6
No related merge requests found
......@@ -18,6 +18,7 @@
"context" .
"name" $name
"with_labels" true
"in_itemscope" true
) }}
</ul>
......
......@@ -2,6 +2,7 @@
{{ $with_labels := .with_labels | default false }}
{{ $context := .context | default . }}
{{ $use_default_email_label := .use_default_email_label }}
{{ $in_itemscope := .in_itemscope }}
{{ with $context.emails.email }}
<li class="email">
......@@ -9,11 +10,14 @@
{{ if $with_labels }}
<span>{{ $email_label }}</span>
{{ end }}
<a href="{{ chomp .value | safeURL }}" itemprop="email" title='{{ safeHTML (i18n "commons.contact.email.a11y_label" (dict "email" .label )) }}'>
<a href="{{ chomp .value | safeURL }}"
{{ if $in_itemscope }} itemprop="email" {{ end }}
title='{{ safeHTML (i18n "commons.contact.email.a11y_label" (dict "email" .label )) }}'
>
{{ cond $use_default_email_label $email_label .label }}
</a>
</li>
{{ end}}
{{ end }}
{{ range $key, $value := $context.social_networks }}
<li class="{{ $key }}">
{{ $label := $key | title }}
......
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