diff options
author | 2021-06-16 17:19:23 -0400 | |
---|---|---|
committer | 2021-06-16 17:19:23 -0400 | |
commit | e711668556ab5230af7af611c941f59014d27a1b (patch) | |
tree | af0e42ce8fd4bfd4d838645ba5c199d3a5c1fda3 /examples/blog/src/pages/$author.astro | |
parent | 5c01526731ada6bc41b334d1630bf472e2690126 (diff) | |
download | astro-e711668556ab5230af7af611c941f59014d27a1b.tar.gz astro-e711668556ab5230af7af611c941f59014d27a1b.tar.zst astro-e711668556ab5230af7af611c941f59014d27a1b.zip |
Improvement/accessibility blog example (#475)
* improvements: updated heading tag order, removed repeat alt values, added aria-labels
* chore: added changeset
Diffstat (limited to 'examples/blog/src/pages/$author.astro')
-rw-r--r-- | examples/blog/src/pages/$author.astro | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/blog/src/pages/$author.astro b/examples/blog/src/pages/$author.astro index 6f4b0fceb..687cabb42 100644 --- a/examples/blog/src/pages/$author.astro +++ b/examples/blog/src/pages/$author.astro @@ -93,10 +93,10 @@ export async function createCollection() { <Nav title={title} /> <main class="wrapper"> - <h1 class="title"> - <div class="avatar"><img class="avatar-img" src={author.image} alt={author.name}></div> + <h2 class="title"> + <div class="avatar"><img class="avatar-img" src={author.image} alt=""}></div> {author.name} - </h1> + </h2> <small class="count">{collection.start + 1}–{collection.end + 1} of {collection.total}</small> {collection.data.map((post) => <PostPreview post={post} author={author} />)} </main> |