浏览代码

Fix inconsistencies in target attributes (#288)

Tommy Chu 4 年之前
父节点
当前提交
cb3df73d53
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      layouts/partials/sections/about.html

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

@@ -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 }}