aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/PostsList/PostsList.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/PostsList/PostsList.tsx')
-rw-r--r--src/components/PostsList/PostsList.tsx7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/components/PostsList/PostsList.tsx b/src/components/PostsList/PostsList.tsx
index 51698e6..3354dd5 100644
--- a/src/components/PostsList/PostsList.tsx
+++ b/src/components/PostsList/PostsList.tsx
@@ -21,7 +21,12 @@ const PostsList = ({
return years.map((year) => {
return (
<section key={year} className={styles.section}>
- {showYears && <h2 className={styles.year}>{year}</h2>}
+ {showYears && (
+ <h2 className={styles.year}>
+ <span className="screen-reader-text">{t`Published in`} </span>
+ {year}
+ </h2>
+ )}
<ol className={styles.list}>
{posts[year].map((post) => {
return (