diff options
Diffstat (limited to 'website/src/components')
| -rw-r--r-- | website/src/components/BlogFeed.astro | 2 | ||||
| -rw-r--r-- | website/src/components/LinksFeed.astro | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/website/src/components/BlogFeed.astro b/website/src/components/BlogFeed.astro index f0c34e7..af72db4 100644 --- a/website/src/components/BlogFeed.astro +++ b/website/src/components/BlogFeed.astro @@ -9,7 +9,7 @@ export interface Props { const { headingLevel = 2, hideAuthor = false } = Astro.props; -const posts = (await getCollection('blog')); +const posts = (await getCollection('blog')).filter((post) => !post.data.hidden); const distinctYears: number[] = posts .map(post => post.data.pubDate.year) diff --git a/website/src/components/LinksFeed.astro b/website/src/components/LinksFeed.astro index a428395..4ca8dbd 100644 --- a/website/src/components/LinksFeed.astro +++ b/website/src/components/LinksFeed.astro @@ -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> )) } |
