This commit is contained in:
Joe Carstairs
2024-06-12 13:55:02 +01:00
5 changed files with 24 additions and 4 deletions

View File

@@ -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)

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>
)) }

View File

@@ -1,5 +1,6 @@
---
title: EUHWC Toast to the Lassies 2024
hidden: true
description: >-
At the <a href="https://www.euhwc.co.uk">EUHWC</a> Burns meet in
Ullapool last weekend, I had the last privilege of giving the Toast to

View File

@@ -10,6 +10,7 @@ const blog = defineCollection({
type: 'content',
schema: z.object({
title: z.string(),
hidden: z.optional(z.boolean()),
description: z.string(),
pubDate: dateSchema,
updatedDate: z.optional(dateSchema),

View File

@@ -43,7 +43,25 @@ const LINKS: Link[] = [
title: 'BCS manifesto',
description: 'Good for what it is. Good policies. Succinct. Should be the beginning (<em>not</em> the end) of some interesting conversations.',
isoDateAdded: '2024-06-05'
}
},
{
href: 'https://broughtonspurtle.org.uk/news/gone-not-forgotten',
title: '154 McDonald Road: Gone but not Forgotten',
description: 'A superb tribute to the building and analysis of the failures of the planning system. This was published in my free local newsletter, and is worthy of any broadsheet newspaper.',
isoDateAdded: '2024-06-07',
},
{
href: 'https://thehistoryoftheweb.com/beware-the-cloud-of-hype',
title: 'Beware the cloud of hype',
description: 'Jay Hoffman spots some striking parallels between the current AI hype and the dot-com bubble.',
isoDateAdded: '2024-06-07',
},
{
href: 'https://www.eff.org/files/2023/06/14/saving_the_news_from_big_tech_eff.pdf',
title: 'Saving the News from Big Tech',
description: 'Cory Doctorow, writing for the Electronic Frontier Foundation, argues that to save news media, we need to dismantle ad-tech monopolies, ban surveillance advertising, open up app stores and have an end-to-end web.',
isoDateAdded: '2024-06-07',
},
];
export default LINKS;