diff --git a/newfile.txt b/newfile.txt deleted file mode 100644 index e69de29..0000000 diff --git a/public/death/death.webp b/public/death/death.webp new file mode 100644 index 0000000..5cd4663 Binary files /dev/null and b/public/death/death.webp differ diff --git a/src/content/config.ts b/src/content/config.ts index 8c455d0..7a2269b 100644 --- a/src/content/config.ts +++ b/src/content/config.ts @@ -16,6 +16,7 @@ export const collections = { software: defineCollection({ type: "content", schema: base }), meditations: defineCollection({ type: "content", schema: base }), "autonomous-racing": defineCollection({ type: "content", schema: base }), + death: defineCollection({ type: "content", schema: base }), git: defineCollection({ type: "content", schema: base }), gists: defineCollection({ type: "content", schema: base }), diff --git a/src/layouts/BaseLayout.astro b/src/layouts/BaseLayout.astro index fd925ef..3b927c4 100644 --- a/src/layouts/BaseLayout.astro +++ b/src/layouts/BaseLayout.astro @@ -6,6 +6,7 @@ const { title, description = "Barrett Ruth's website", bodyClass = "graph-background", + useHeader = true, } = Astro.props; --- @@ -33,7 +34,7 @@ const { -
+ {useHeader &&
}
@@ -51,6 +52,8 @@ const { return "#3d8a44"; case "git": return "#cc5500"; + case "death": + return "#000000"; default: return getComputedStyle(document.documentElement) .getPropertyValue("--text") diff --git a/src/pages/[category]/index.astro b/src/pages/[category]/index.astro index 06c6819..3428020 100644 --- a/src/pages/[category]/index.astro +++ b/src/pages/[category]/index.astro @@ -41,6 +41,9 @@ posts.sort(sortItem); >autonomous-racing +
  • + death +
  • diff --git a/src/pages/death.astro b/src/pages/death.astro new file mode 100644 index 0000000..131c553 --- /dev/null +++ b/src/pages/death.astro @@ -0,0 +1,64 @@ +--- +import BaseLayout from "../layouts/BaseLayout.astro"; + +const title = "my father"; +--- + + +
    + Philip Matthew Ruth + +
    + rip philip matthew ruth
    + february 8, 1967 – c. december 2, 2025 +
    + +
    + gary wray
    + waiting in line, 2021 +
    +
    + + +
    diff --git a/src/pages/index.astro b/src/pages/index.astro index 6fbad4f..6b2d1cf 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -57,6 +57,9 @@ for (const c of CATS) { >autonomous racing +
  • + death +
  • diff --git a/src/types.ts b/src/types.ts index 4d3d7eb..c009296 100644 --- a/src/types.ts +++ b/src/types.ts @@ -6,7 +6,8 @@ export type CollectionKey = | "meditations" | "autonomous-racing" | "git" - | "gists"; + | "gists" + | "death"; export type PostCollection = Exclude; export type AnyCollectionEntry = @@ -14,5 +15,6 @@ export type AnyCollectionEntry = | CollectionEntry<"software"> | CollectionEntry<"meditations"> | CollectionEntry<"autonomous-racing"> + | CollectionEntry<"death"> | CollectionEntry<"git"> | CollectionEntry<"gists">; diff --git a/src/utils/colors.js b/src/utils/colors.js index 587eb2c..5f90b5a 100644 --- a/src/utils/colors.js +++ b/src/utils/colors.js @@ -10,6 +10,8 @@ export function getTopicColor(topicName) { return "#3d8a44"; case "git": return "#cc5500"; + case "death": + return "#000000"; default: return null; }