Fix inconsistencies in target attributes (#288)

This commit is contained in:
Tommy Chu 2021-04-04 11:35:51 +02:00 committed by GitHub
parent 60d2b21649
commit cb3df73d53
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -29,11 +29,11 @@
{{ range .socialLinks }}
<li>
{{ if eq .name "Email" }}
<a href="mailto:{{ .url }}" target="/"><i class="{{ .icon }}"></i></a>
<a href="mailto:{{ .url }}" target="_blank"><i class="{{ .icon }}"></i></a>
{{ else if eq .name "Phone" }}
<a href="tel:{{ .url }}" target="/"><i class="{{ .icon }}"></i></a>
<a href="tel:{{ .url }}" target="_blank"><i class="{{ .icon }}"></i></a>
{{ else }}
<a href="{{ .url }}" target="/"><i class="{{ .icon }}"></i></a>
<a href="{{ .url }}" target="_blank"><i class="{{ .icon }}"></i></a>
{{ end }}
</li>
{{ end }}