aboutsummaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
authorTrack3 <pengliabc@live.cn>2018-12-12 19:52:58 +0800
committerTrack3 <pengliabc@live.cn>2018-12-12 19:52:58 +0800
commit3876e51665111ef17f921c5e55986db55c282def (patch)
treea1c2367258efef9d81414ef0b06cf87bcb0ddae9 /layouts
parent3bb532df30e5ed3cf3713dc450a1a0ec99172e08 (diff)
Remove screen-reader-text (#8)
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/header.html2
-rw-r--r--layouts/partials/social-icons.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 8c241fe..f3d5e68 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -11,7 +11,7 @@
</nav>
</div>
<div class="hdr-right hdr-icons">
- {{- with .Params.featuredImg }}
+ {{ with .Params.featuredImg -}}
<button class="hdr-btn" onclick="showFeaturedImg()"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-image"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><circle cx="8.5" cy="8.5" r="1.5"></circle><polyline points="21 15 16 10 5 21"></polyline></svg></button>
{{- end }}
{{- with .Site.Params.social -}}
diff --git a/layouts/partials/social-icons.html b/layouts/partials/social-icons.html
index 3496bef..5df3d55 100644
--- a/layouts/partials/social-icons.html
+++ b/layouts/partials/social-icons.html
@@ -1,3 +1,3 @@
{{ range . -}}
-<a href="{{ .url }}" target="_blank" rel="noopener"><span class="screen-reader-text">{{ .name }}</span>{{ partial "svg.html" . }}</a>
+<a href="{{ .url }}" target="_blank" rel="noopener">{{ partial "svg.html" . }}</a>
{{- end -}}