Skip to content

Commit

Permalink
minor: add relevant ids to Heading
Browse files Browse the repository at this point in the history
Signed-off-by: Devansu <devansuyadav@gmail.com>
  • Loading branch information
Devansu-Yadav committed Jan 19, 2023
1 parent 0502adc commit 47c9b7a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Expand Up @@ -21,7 +21,9 @@ type YearProp = {
function Year({year, posts}: YearProp) {
return (
<>
<Heading as="h3">{year}</Heading>
<Heading as="h3" id={year}>
{year}
</Heading>
<ul>
{posts.map((post) => (
<li key={post.metadata.date}>
Expand Down
Expand Up @@ -15,7 +15,9 @@ import styles from './styles.module.css';
function TagLetterEntryItem({letterEntry}: {letterEntry: TagLetterEntry}) {
return (
<article>
<Heading as="h2">{letterEntry.letter}</Heading>
<Heading as="h2" id={letterEntry.letter}>
{letterEntry.letter}
</Heading>
<ul className="padding--none">
{letterEntry.tags.map((tag) => (
<li key={tag.permalink} className={styles.tag}>
Expand Down

0 comments on commit 47c9b7a

Please sign in to comment.