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

change url to value

parent f3de2df7
No related branches found
No related tags found
No related merge requests found
......@@ -6,28 +6,35 @@
{{ with .website }}
<li>
<span>{{ i18n "commons.contact.website" }}</span>
<a href="{{ chomp .url }}" target="_blank" rel="noopener" itemprop="url">{{ chomp .label }}</a>
<a href="{{ chomp .value }}" target="_blank" rel="noopener" itemprop="url">{{ chomp .label }}</a>
</li>
{{ end }}
{{ with .linkedin }}
<li>
<span>LinkedIn</span>
<a href="{{ chomp .url }}" target="_blank" rel="noopener" itemprop="url">{{ chomp .label }}</a>
<a href="{{ chomp .value }}" target="_blank" rel="noopener" itemprop="url">{{ chomp .label }}</a>
</li>
{{ end }}
{{ with .mastodon }}
<li>
<span>Mastodon</span>
<a href="{{ chomp .value }}" target="_blank" rel="noopener" itemprop="url">{{ chomp .label }}</a>
</li>
{{ end }}
{{ with .twitter }}
<li>
<span>Twitter</span>
<a href="https://twitter.com/{{ chomp .url }}" target="_blank" rel="noopener" itemprop="url">{{ chomp .label }}</a>
<a href="{{ chomp .value }}" target="_blank" rel="noopener" itemprop="url">{{ chomp .label }}</a>
</li>
{{ end }}
{{ with .email }}
<li>
<span>{{ i18n "commons.contact.email" }}</span>
<a href="mailto:{{ chomp .url }}" itemprop="email">{{ chomp .label }}</a>
<a href="{{ chomp .value }}" itemprop="email">{{ chomp .label }}</a>
</li>
{{ end }}
</ul>
......@@ -41,33 +48,33 @@
<address itemprop="address" itemscope itemtype="https://schema.org/PostalAddress">
{{ with .address }}
<span itemprop="streetAddress">
{{ partial "PrepareHTML" . }},
{{ partial "PrepareHTML" .label }},
</span>
<br>
{{ end }}
{{ with .city }}
<span itemprop="addressLocality">
{{ partial "PrepareHTML" . }}
{{ partial "PrepareHTML" .label }}
</span>
{{ end }}
{{ with .zipcode }}
<span itemprop="postalCode">
{{ partial "PrepareHTML" . }}
{{ partial "PrepareHTML" .label }}
</span>
{{ end }}
{{ with .country }}
<span itemprop="postalCode">
{{ partial "PrepareHTML" . }}
{{ partial "PrepareHTML" .label }}
</span>
{{ end }}
</address>
</li>
{{ end }}
{{ if .phone }}
{{ with .phone }}
<li>
<span>{{ i18n "commons.contact.phone" }}</span>
<a href="tel:{{ .phone }}" itemprop="telephone">{{ .phone }}</a>
<a href="{{ .value }}" itemprop="telephone">{{ .label }}</a>
</li>
{{ end }}
</ul>
......
......@@ -6,42 +6,42 @@
{{ with .website }}
<li>
<span>{{ i18n "commons.contact.website" }}</span>
<a href="{{ chomp .url }}" target="_blank" rel="noopener" itemprop="url">{{ chomp .label }}</a>
<a href="{{ chomp .value }}" target="_blank" rel="noopener" itemprop="url">{{ chomp .label }}</a>
</li>
{{ end }}
{{ with .linkedin }}
<li>
<span>LinkedIn</span>
<a href="{{ chomp .url }}" target="_blank" rel="noopener" itemprop="url">{{ chomp .label }}</a>
<a href="{{ chomp .value }}" target="_blank" rel="noopener" itemprop="url">{{ chomp .label }}</a>
</li>
{{ end }}
{{ with .mastodon }}
<li>
<span>Mastodon</span>
<a href="https://mastodon.social/{{ chomp .url }}" target="_blank" rel="noopener" itemprop="url">{{ chomp .label }}</a>
<a href="{{ chomp .value }}" target="_blank" rel="noopener" itemprop="url">{{ chomp .label }}</a>
</li>
{{ end }}
{{ with .twitter }}
<li>
<span>Twitter</span>
<a href="https://twitter.com/{{ chomp .url }}" target="_blank" rel="noopener" itemprop="url">{{ chomp .label }}</a>
<a href="{{ chomp .value }}" target="_blank" rel="noopener" itemprop="url">{{ chomp .label }}</a>
</li>
{{ end }}
{{ with .email }}
<li>
<span>{{ i18n "commons.contact.email" }}</span>
<a href="mailto:{{ chomp .label }}" itemprop="email">{{ chomp .url }}</a>
<a href="{{ chomp .value }}" itemprop="email">{{ chomp .label }}</a>
</li>
{{ end }}
{{ with .phone }}
<li>
<span>{{ i18n "commons.contact.phone" }}</span>
<a href="tel:{{ . }}" itemprop="telephone">{{ . }}</a>
<a href="{{ .value }}" itemprop="telephone">{{ .label }}</a>
</li>
{{ end }}
</ul>
......
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