Wrap entire card in <a> to make clickable.

I'm going to revert this and use an ::after pseudo-element to expand the
click target, but I need a point to which I can revert my changes.
This commit is contained in:
Benjamin A. Shelton 2026-11-25 19:46:36 -07:00
commit ee2c813ee9
Signed by: zancarius
GPG key ID: 8BD42DBD6C337E01
2 changed files with 19 additions and 17 deletions

View file

@ -44,7 +44,7 @@ const { notes } = Astro.props;
<div id="notes-list">
<ul>{notes.map((note: CollectionEntry<'notes'>) => (
<li>
<li class="flex"><a href={new URL(`${base}notes/${note.id}/`, Astro.url).pathname}>
<div class="header-image">
<img src={urlfrag(base, note.data.post_image)} class="rounded-md" />
</div>
@ -60,12 +60,10 @@ const { notes } = Astro.props;
</ul>
</div>
<hgroup>
<h2>
<a href={new URL(`${base}notes/${note.id}/`, Astro.url).pathname}>{note.data.title}</a>
</h2>
<h2>{note.data.title}</h2>
<h3>{note.data.sub_heading}</h3>
</hgroup>
<time>{dateFormat(note.data.date)}</time>
</li>
</a></li>
))}</ul>
</div>