Browse Source

Fix inconsistencies in target attributes (#288)

Tommy Chu 4 năm trước cách đây
mục cha
commit
cb3df73d53

+ 3 - 3
layouts/partials/sections/about.html

@@ -29,11 +29,11 @@
           {{ range .socialLinks }}
           {{ range .socialLinks }}
           <li>
           <li>
             {{ if eq .name "Email" }}
             {{ 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" }}
             {{ 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 }}
             {{ else }}
-              <a href="{{ .url }}" target="/"><i class="{{ .icon }}"></i></a>
+              <a href="{{ .url }}" target="_blank"><i class="{{ .icon }}"></i></a>
             {{ end }}
             {{ end }}
           </li>
           </li>
           {{ end }}
           {{ end }}