From f3393d8a9e5b16cb745784b7aa131c171eadb35f Mon Sep 17 00:00:00 2001 From: Oscar Otero Date: Thu, 31 Jul 2025 13:32:33 +0200 Subject: [PATCH 1/7] Moved posts to a folder --- posts/_data.yml | 3 +++ .../city_worker_exchange_program.md | 1 - colorize.md => posts/colorize.md | 1 - iocp_links.md => posts/iocp_links.md | 1 - javascript_containers.md => posts/javascript_containers.md | 1 - optimistic_nihilism.md => posts/optimistic_nihilism.md | 1 - rant.md => posts/rant.md | 1 - residency.md => posts/residency.md | 1 - trademark.md => posts/trademark.md | 1 - underestimating-ai.md => posts/underestimating-ai.md | 1 - 10 files changed, 3 insertions(+), 9 deletions(-) create mode 100644 posts/_data.yml rename city_worker_exchange_program.md => posts/city_worker_exchange_program.md (99%) rename colorize.md => posts/colorize.md (99%) rename iocp_links.md => posts/iocp_links.md (99%) rename javascript_containers.md => posts/javascript_containers.md (99%) rename optimistic_nihilism.md => posts/optimistic_nihilism.md (99%) rename rant.md => posts/rant.md (99%) rename residency.md => posts/residency.md (99%) rename trademark.md => posts/trademark.md (99%) rename underestimating-ai.md => posts/underestimating-ai.md (99%) diff --git a/posts/_data.yml b/posts/_data.yml new file mode 100644 index 0000000..00f23cf --- /dev/null +++ b/posts/_data.yml @@ -0,0 +1,3 @@ +layout: post.tsx +type: post +basename: "" diff --git a/city_worker_exchange_program.md b/posts/city_worker_exchange_program.md similarity index 99% rename from city_worker_exchange_program.md rename to posts/city_worker_exchange_program.md index 69b654b..d9c17d2 100644 --- a/city_worker_exchange_program.md +++ b/posts/city_worker_exchange_program.md @@ -1,7 +1,6 @@ --- title: City Worker Exchange Program publish_date: 2022-08-04 -layout: post.tsx --- An international exchange program should be established for workers in local diff --git a/colorize.md b/posts/colorize.md similarity index 99% rename from colorize.md rename to posts/colorize.md index 4395d4f..4448fad 100644 --- a/colorize.md +++ b/posts/colorize.md @@ -1,7 +1,6 @@ --- title: Automatic Colorization publish_date: 2016-01-08 -layout: post.tsx --- Have you seen Reddit's diff --git a/iocp_links.md b/posts/iocp_links.md similarity index 99% rename from iocp_links.md rename to posts/iocp_links.md index 56d4a96..3966d1f 100644 --- a/iocp_links.md +++ b/posts/iocp_links.md @@ -1,7 +1,6 @@ --- title: Asynchronous I/O in Windows for Unix Programmers publish_date: 2011-04-26 -layout: post.tsx --- This document was an attempt at understanding how best to port Node.js to diff --git a/javascript_containers.md b/posts/javascript_containers.md similarity index 99% rename from javascript_containers.md rename to posts/javascript_containers.md index 28194b3..77c382e 100644 --- a/javascript_containers.md +++ b/posts/javascript_containers.md @@ -1,7 +1,6 @@ --- title: JavaScript Containers publish_date: 2022-05-04 -layout: post.tsx --- The majority of server programs are Linux programs. They consist of a file diff --git a/optimistic_nihilism.md b/posts/optimistic_nihilism.md similarity index 99% rename from optimistic_nihilism.md rename to posts/optimistic_nihilism.md index cc32912..9e81032 100644 --- a/optimistic_nihilism.md +++ b/posts/optimistic_nihilism.md @@ -3,7 +3,6 @@ title: Optimistic Nihilism publish_date: 2017-10-22 cover_html: background: "#eef" -layout: post.tsx --- This post is in response to the diff --git a/rant.md b/posts/rant.md similarity index 99% rename from rant.md rename to posts/rant.md index ea2f6a6..17d2101 100644 --- a/rant.md +++ b/posts/rant.md @@ -1,7 +1,6 @@ --- title: I hate almost all software publish_date: 2011-09-29 -layout: post.tsx --- It's unnecessary and complicated at almost every layer. At best I can diff --git a/residency.md b/posts/residency.md similarity index 99% rename from residency.md rename to posts/residency.md index 7d920cb..85b177e 100644 --- a/residency.md +++ b/posts/residency.md @@ -2,7 +2,6 @@ title: Google Brain Residency publish_date: 2017-06-06 background: white -layout: post.tsx --- Last year, after [nerding](http://tinyclouds.org/colorize/) diff --git a/trademark.md b/posts/trademark.md similarity index 99% rename from trademark.md rename to posts/trademark.md index 25e5cd7..35bcc49 100644 --- a/trademark.md +++ b/posts/trademark.md @@ -1,7 +1,6 @@ --- title: Dear Oracle, Please Release the JavaScript Trademark publish_date: 2022-09-03 -layout: post.tsx --- [In 1995 Netscape partnered with Sun Microsystems to create interactive diff --git a/underestimating-ai.md b/posts/underestimating-ai.md similarity index 99% rename from underestimating-ai.md rename to posts/underestimating-ai.md index bc7b848..e086ed1 100644 --- a/underestimating-ai.md +++ b/posts/underestimating-ai.md @@ -1,7 +1,6 @@ --- title: We're Still Underestimating What AI Really Means publish_date: 2025-06-14 -layout: post.tsx --- Most people are focused on short-term gains. Another tech wave, another startup From ad8a50496304164b09b3010c56a729351b01870e Mon Sep 17 00:00:00 2001 From: Oscar Otero Date: Thu, 31 Jul 2025 13:35:14 +0200 Subject: [PATCH 2/7] fixed types --- index.ts => _index.tsx | 8 ++++---- feed.page.ts | 8 ++++---- index.page.ts | 8 ++++---- 3 files changed, 12 insertions(+), 12 deletions(-) rename index.ts => _index.tsx (80%) diff --git a/index.ts b/_index.tsx similarity index 80% rename from index.ts rename to _index.tsx index 8b0b40e..5d5b462 100644 --- a/index.ts +++ b/_index.tsx @@ -1,16 +1,16 @@ export const layout = "layout.tsx"; export const title = "Ryan Dahl"; -export default function Home({ search }: { search: any }) { +export default function Home({ search }: Lume.Data) { const posts = search.pages("src.path*=/posts/") - .filter((page: any) => page.publish_date) - .sort((a: any, b: any) => + .filter((page) => page.publish_date) + .sort((a, b) => new Date(b.publish_date).getTime() - new Date(a.publish_date).getTime() ); return (