Fixes link contents to render HTML

This commit is contained in:
Joe Carstairs
2024-06-11 11:22:41 +01:00
parent 9122a88ef0
commit fe154c01cf

View File

@@ -67,8 +67,8 @@ const canonicalLinksUrl = new URL('links', Astro.site)
<ul>
{ LINKS.filter(matchesYear(year)).sort(sortByDateAddedDescending).map(link => (
<li class="h-entry e-content">
<a class="u-url p-name" href={link.href}>{link.title}</a>.
{link.description}
<a class="u-url p-name" href={link.href} set:html={link.title} />.
<Fragment set:html={link.description} />
Added: <FormattedDate date={link.isoDateAdded} />
</li>
)) }