Merge branch 'main' of https://github.com/joeacarstairs/personal-website
This commit is contained in:
@@ -9,7 +9,7 @@ export interface Props {
|
|||||||
|
|
||||||
const { headingLevel = 2, hideAuthor = false } = Astro.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
|
const distinctYears: number[] = posts
|
||||||
.map(post => post.data.pubDate.year)
|
.map(post => post.data.pubDate.year)
|
||||||
|
|||||||
@@ -67,8 +67,8 @@ const canonicalLinksUrl = new URL('links', Astro.site)
|
|||||||
<ul>
|
<ul>
|
||||||
{ LINKS.filter(matchesYear(year)).sort(sortByDateAddedDescending).map(link => (
|
{ LINKS.filter(matchesYear(year)).sort(sortByDateAddedDescending).map(link => (
|
||||||
<li class="h-entry e-content">
|
<li class="h-entry e-content">
|
||||||
<a class="u-url p-name" href={link.href}>{link.title}</a>.
|
<a class="u-url p-name" href={link.href} set:html={link.title} />.
|
||||||
{link.description}
|
<Fragment set:html={link.description} />
|
||||||
Added: <FormattedDate date={link.isoDateAdded} />
|
Added: <FormattedDate date={link.isoDateAdded} />
|
||||||
</li>
|
</li>
|
||||||
)) }
|
)) }
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: EUHWC Toast to the Lassies 2024
|
title: EUHWC Toast to the Lassies 2024
|
||||||
|
hidden: true
|
||||||
description: >-
|
description: >-
|
||||||
At the <a href="https://www.euhwc.co.uk">EUHWC</a> Burns meet in
|
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
|
Ullapool last weekend, I had the last privilege of giving the Toast to
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ const blog = defineCollection({
|
|||||||
type: 'content',
|
type: 'content',
|
||||||
schema: z.object({
|
schema: z.object({
|
||||||
title: z.string(),
|
title: z.string(),
|
||||||
|
hidden: z.optional(z.boolean()),
|
||||||
description: z.string(),
|
description: z.string(),
|
||||||
pubDate: dateSchema,
|
pubDate: dateSchema,
|
||||||
updatedDate: z.optional(dateSchema),
|
updatedDate: z.optional(dateSchema),
|
||||||
|
|||||||
@@ -43,7 +43,25 @@ const LINKS: Link[] = [
|
|||||||
title: 'BCS manifesto',
|
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.',
|
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'
|
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;
|
export default LINKS;
|
||||||
|
|||||||
Reference in New Issue
Block a user