summaryrefslogtreecommitdiff
path: root/website/src/components
diff options
context:
space:
mode:
authorJoe Carstairs <65492573+Sycamost@users.noreply.github.com>2024-06-12 13:55:02 +0100
committerJoe Carstairs <65492573+Sycamost@users.noreply.github.com>2024-06-12 13:55:02 +0100
commitbc35da5976010400c8a761c05f0ba47dafaa270b (patch)
treec1fbb67a4eef8082c968b0062a514fe4b79577e7 /website/src/components
parent9ca07414286ef1139ba8dce5be0cfd51b24970c4 (diff)
parent952c90bbbf49e11b51b0d5fc6843b6a08156dc1d (diff)
Merge branch 'main' of https://github.com/joeacarstairs/personal-website
Diffstat (limited to 'website/src/components')
-rw-r--r--website/src/components/BlogFeed.astro2
-rw-r--r--website/src/components/LinksFeed.astro4
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>
)) }