From 4eaddf28e064605099fdde7b4efd79412cbd22fd Mon Sep 17 00:00:00 2001 From: Frank van Puffelen Date: Thu, 25 Jul 2024 17:19:25 -0700 Subject: [PATCH] Remove % from file names for slugs --- books copy/Chip War - Chris Miller.md | 11 ----------- books copy/The Lost Cause - Cory Doctorrow.md | 11 ----------- books copy/The Ride of a Lifetime - Bob Iger.md | 11 ----------- books copy/The Rule of Threes - Jeffery Deaver.md | 11 ----------- .../To Be Taught, If Fortunate - Becky Chambers.md | 12 ------------ books copy/_readme.md | 1 - src/components/Notes.astro | 2 +- tools/src/env.d.ts | 1 + 8 files changed, 2 insertions(+), 58 deletions(-) delete mode 100644 books copy/Chip War - Chris Miller.md delete mode 100644 books copy/The Lost Cause - Cory Doctorrow.md delete mode 100644 books copy/The Ride of a Lifetime - Bob Iger.md delete mode 100644 books copy/The Rule of Threes - Jeffery Deaver.md delete mode 100644 books copy/To Be Taught, If Fortunate - Becky Chambers.md delete mode 100644 books copy/_readme.md create mode 100644 tools/src/env.d.ts diff --git a/books copy/Chip War - Chris Miller.md b/books copy/Chip War - Chris Miller.md deleted file mode 100644 index eff2c6d..0000000 --- a/books copy/Chip War - Chris Miller.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -title: "Chip War: The Fight for the World's Most Critical Technology" -author: Chris Miller -startedDate: 'May 28, 2024' -finishedDate: 'June 6, 2024' -rating: 4 -edition: Kindle -link: https://www.goodreads.com/book/show/60838950-chip-war -pageCount: 463 ---- -A bit dry, but lots of interesting facts about the past 60 odd years in chip development. diff --git a/books copy/The Lost Cause - Cory Doctorrow.md b/books copy/The Lost Cause - Cory Doctorrow.md deleted file mode 100644 index 9712822..0000000 --- a/books copy/The Lost Cause - Cory Doctorrow.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -title: The Lost Cause -author: Cory Doctorrow -startedDate: 'December 15, 2023' -finishedDate: 'January 11, 2024' -rating: 3 -edition: Audiobook -link: https://www.goodreads.com/book/show/214135308-the-lost-cause -pageCount: 368 ---- -Near future novel about climate change. I love the tech topics that Cory writes about, but his novelist style is not always my favorite. In addition, I feel he's the worst person to narrate his own work. Still... I learnt a ton about what climate change could look like, which I liked. diff --git a/books copy/The Ride of a Lifetime - Bob Iger.md b/books copy/The Ride of a Lifetime - Bob Iger.md deleted file mode 100644 index 3d9e081..0000000 --- a/books copy/The Ride of a Lifetime - Bob Iger.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -title: "The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company" -author: Robert Iger -startedDate: 'June 16, 2024' -finishedDate: 'June 22, 2024' -rating: 4 -edition: Kindle -link: https://www.goodreads.com/book/show/45310145-the-ride-of-a-lifetime -pageCount: 250 ---- -Initially I feared it was more a management book than a memoir, but that turned out to not be true. I especially liked reading Bob's side of the Pixar acquisition, which I'd read from Ed Catmull's perspective a while ago. \ No newline at end of file diff --git a/books copy/The Rule of Threes - Jeffery Deaver.md b/books copy/The Rule of Threes - Jeffery Deaver.md deleted file mode 100644 index eb634f8..0000000 --- a/books copy/The Rule of Threes - Jeffery Deaver.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -title: The Rule of Threes -author: Jeffery Deaver -startedDate: 'June 6, 2024' -finishedDate: 'June 10, 2024' -rating: 3 -edition: Kindle -link: https://www.goodreads.com/book/show/198619950-the-rule-of-threes -pageCount: 261 ---- -Fairly standard thriller, but free on Prime Reading so who am I to complain? \ No newline at end of file diff --git a/books copy/To Be Taught, If Fortunate - Becky Chambers.md b/books copy/To Be Taught, If Fortunate - Becky Chambers.md deleted file mode 100644 index b2686a3..0000000 --- a/books copy/To Be Taught, If Fortunate - Becky Chambers.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -title: To Be Taught, If Fortunate -author: Becky Chambers -startedDate: 'July 13, 2024' -finishedDate: 'July 20, 2024' -rating: 4 -edition: Kindle -link: https://www.goodreads.com/review/show/6666250686 -pageCount: 160 ---- - -This novella on interstellar travel uses the premise to explore interhuman relations and the effect of different environments. Given the topic it was not the most trivial read, but it was well worth it. \ No newline at end of file diff --git a/books copy/_readme.md b/books copy/_readme.md deleted file mode 100644 index 2103f82..0000000 --- a/books copy/_readme.md +++ /dev/null @@ -1 +0,0 @@ -I'm a voracious reader of books and articles, and write blurbs about that. I track all my reading on [GoodReads](https://www.goodreads.com/user/show/24654655) and have been writing short reviews for a few years now, which I'll share here. \ No newline at end of file diff --git a/src/components/Notes.astro b/src/components/Notes.astro index c7a4dd1..2e8fca8 100644 --- a/src/components/Notes.astro +++ b/src/components/Notes.astro @@ -14,7 +14,7 @@ export function getSlugForNote(note) { .replace(notesPath, "") // remove local path .replace(/\.md$/, "") // remove .md extension .toLowerCase().replace(/\s/g, '-') // replace spaces with - - .split("").filter(c => "()".indexOf(c) == -1).join("") // remove some chars + .split("").filter(c => "()%".indexOf(c) == -1).join("") // remove some chars .replace(/_readme$/, "") // treat _readme.md like an index.html ; } diff --git a/tools/src/env.d.ts b/tools/src/env.d.ts new file mode 100644 index 0000000..8c34fb4 --- /dev/null +++ b/tools/src/env.d.ts @@ -0,0 +1 @@ +/// \ No newline at end of file