Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/asurbernardo/amperage.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAsur <asur@asurbernardo.com>2020-01-18 12:35:24 +0300
committerAsur <asur@asurbernardo.com>2020-01-18 12:35:24 +0300
commit4097f49e60ef85f69dcbf9ade304eba8ead8b618 (patch)
tree6ce6d769a4dd788a1766e77bdd751c76233ab3dc
parent0dc92c443b5e7db711485efba5efb42a6fe53c3d (diff)
Improve accessibility of link and image
-rw-r--r--layouts/partials/post/summary.html8
1 files changed, 6 insertions, 2 deletions
diff --git a/layouts/partials/post/summary.html b/layouts/partials/post/summary.html
index 544901e..7e9add9 100644
--- a/layouts/partials/post/summary.html
+++ b/layouts/partials/post/summary.html
@@ -5,8 +5,12 @@
src="{{.Params.Image.Src}}"
layout="responsive"
width="1280"
- height="720"></amp-img>
+ height="720"
+ alt="{{.Title}}"></amp-img>
</div>
<p>{{.Summary}}</p>
- <a class="button" role="button" href="{{.Permalink}}" data-rel="prefetch">{{ i18n "keepReading" }}</a>
+ <a class="button" role="button"
+ href="{{.Permalink}}"
+ data-rel="prefetch"
+ aria-label="{{ i18n "keepReading" }} {{.Title}}">{{ i18n "keepReading" }}</a>
</article> \ No newline at end of file