Mirror of the sourcecode for my blog, original repo: https://github.com/NobbZ/blog-nobbz-dev

formatting

Changed files
+40 -33
src
components
content
authors
blog
001-hello-world
002-callpackage-a-tool-for-the-lazy
003-getting-inputs-to-modules-in-a-flake
004-12in23
005-nixos-flakes-command-not-found
schemas
pages
scripts
+1 -1
src/components/Date.astro
··· 1 1 --- 2 2 // SPDX-FileCopyrightText: 2025 Norbert Melzer 3 3 // SPDX-FileContributor: Norbert Melzer 4 - // 4 + // 5 5 // SPDX-License-Identifier: MIT 6 6 7 7 export interface Props extends astroHTML.JSX.TimeHTMLAttributes {
+3 -3
src/components/NavBox.astro
··· 1 1 --- 2 2 // SPDX-FileCopyrightText: 2025 Norbert Melzer 3 3 // SPDX-FileContributor: Norbert Melzer 4 - // 4 + // 5 5 // SPDX-License-Identifier: MIT 6 6 7 7 import NavItem from "./NavItem.astro"; ··· 10 10 class?: string; 11 11 } 12 12 13 - const class_ = Astro.props.class ?? "" 13 + const class_ = Astro.props.class ?? ""; 14 14 --- 15 15 16 16 <nav ··· 21 21 "m-1", 22 22 "p-1", 23 23 "rounded-[12px]", 24 - class_ 24 + class_, 25 25 ]} 26 26 > 27 27 <ol>
+1 -1
src/components/NavItem.astro
··· 1 1 --- 2 2 // SPDX-FileCopyrightText: 2025 Norbert Melzer 3 3 // SPDX-FileContributor: Norbert Melzer 4 - // 4 + // 5 5 // SPDX-License-Identifier: MIT 6 6 7 7 export interface Props {
+1 -1
src/components/NoteBox.astro
··· 1 1 --- 2 2 // SPDX-FileCopyrightText: 2025 Norbert Melzer 3 3 // SPDX-FileContributor: Norbert Melzer 4 - // 4 + // 5 5 // SPDX-License-Identifier: MIT 6 6 7 7 const { class: classes, ...props } = Astro.props;
+3 -1
src/components/PaginateButton.astro
··· 20 20 "rounded-md", 21 21 "p-1", 22 22 "m-1", 23 - active ? "bg-crust hover:bg-surface2 hover:shadow-xl hover:shadow-base text-blue" : "bg-overlay0 text-overlay2 opacity-40", 23 + active 24 + ? "bg-crust hover:bg-surface2 hover:shadow-xl hover:shadow-base text-blue" 25 + : "bg-overlay0 text-overlay2 opacity-40", 24 26 ]} 25 27 > 26 28 <a href={href}><slot /></a>
+9 -2
src/components/PostPreview.astro
··· 1 1 --- 2 2 // SPDX-FileCopyrightText: 2025 Norbert Melzer 3 3 // SPDX-FileContributor: Norbert Melzer 4 - // 4 + // 5 5 // SPDX-License-Identifier: MIT 6 6 7 7 import { getEntry, type CollectionEntry } from "astro:content"; ··· 20 20 21 21 <div class:list={["p-1", "min-h-[150px]", "min-h-[150px]"]}> 22 22 <div class:list={["flex", "flex-col", "md:flex-row", "justify-between"]}> 23 - <h2 class:list={["flex", "text-3xl", "font-extrabold", "text-[--highlight-color]"]}> 23 + <h2 24 + class:list={[ 25 + "flex", 26 + "text-3xl", 27 + "font-extrabold", 28 + "text-[--highlight-color]", 29 + ]} 30 + > 24 31 <a class:list={["hover:underline"]} href={postPath(post)} 25 32 >{post.data.title}</a 26 33 >
+1 -1
src/components/Typography.ts
··· 1 1 // SPDX-FileCopyrightText: 2025 Norbert Melzer 2 2 // SPDX-FileContributor: Norbert Melzer 3 - // 3 + // 4 4 // SPDX-License-Identifier: MIT 5 5 6 6 import H1 from "./typography/H1.astro";
+1 -1
src/components/typography/H1.astro
··· 1 1 --- 2 2 // SPDX-FileCopyrightText: 2025 Norbert Melzer 3 3 // SPDX-FileContributor: Norbert Melzer 4 - // 4 + // 5 5 // SPDX-License-Identifier: MIT 6 6 7 7 const { "class:list": classes } = Astro.props;
+1 -1
src/content/authors/nobbz.mdx
··· 1 1 --- 2 2 # SPDX-FileCopyrightText: 2025 Norbert Melzer 3 3 # SPDX-FileContributor: Norbert Melzer 4 - # 4 + # 5 5 # SPDX-License-Identifier: CC-BY-4.0 6 6 7 7 slug: "nobbz"
+1 -1
src/content/blog/001-hello-world/index.mdx
··· 1 1 --- 2 2 # SPDX-FileCopyrightText: 2025 Norbert Melzer 3 3 # SPDX-FileContributor: Norbert Melzer 4 - # 4 + # 5 5 # SPDX-License-Identifier: CC-BY-4.0 6 6 7 7 title: Hello world!
+1 -1
src/content/blog/002-callpackage-a-tool-for-the-lazy/index.mdx
··· 1 1 --- 2 2 # SPDX-FileCopyrightText: 2025 Norbert Melzer 3 3 # SPDX-FileContributor: Norbert Melzer 4 - # 4 + # 5 5 # SPDX-License-Identifier: CC-BY-4.0 6 6 7 7 title: "<tt>callPackage</tt>, a tool for the lazy"
+1 -1
src/content/blog/003-getting-inputs-to-modules-in-a-flake/index.mdx
··· 1 1 --- 2 2 # SPDX-FileCopyrightText: 2025 Norbert Melzer 3 3 # SPDX-FileContributor: Norbert Melzer 4 - # 4 + # 5 5 # SPDX-License-Identifier: CC-BY-4.0 6 6 7 7 title: "Getting inputs to modules in a nix-flake"
+1 -1
src/content/blog/004-12in23/index.mdx
··· 1 1 --- 2 2 # SPDX-FileCopyrightText: 2025 Norbert Melzer 3 3 # SPDX-FileContributor: Norbert Melzer 4 - # 4 + # 5 5 # SPDX-License-Identifier: CC-BY-4.0 6 6 7 7 title: "#12in23"
+1 -1
src/content/blog/005-nixos-flakes-command-not-found/index.mdx
··· 1 1 --- 2 2 # SPDX-FileCopyrightText: 2025 Norbert Melzer 3 3 # SPDX-FileContributor: Norbert Melzer 4 - # 4 + # 5 5 # SPDX-License-Identifier: CC-BY-4.0 6 6 7 7 title: Flakes and "command-not-found"
+1 -1
src/content/config.ts
··· 1 1 // SPDX-FileCopyrightText: 2025 Norbert Melzer 2 2 // SPDX-FileContributor: Norbert Melzer 3 - // 3 + // 4 4 // SPDX-License-Identifier: MIT 5 5 6 6 import { authors } from "./schemas/authors";
+1 -1
src/content/schemas/authors.ts
··· 1 1 // SPDX-FileCopyrightText: 2025 Norbert Melzer 2 2 // SPDX-FileContributor: Norbert Melzer 3 - // 3 + // 4 4 // SPDX-License-Identifier: MIT 5 5 6 6 import { defineCollection, z } from "astro:content";
+1 -1
src/content/schemas/blog.ts
··· 1 1 // SPDX-FileCopyrightText: 2025 Norbert Melzer 2 2 // SPDX-FileContributor: Norbert Melzer 3 - // 3 + // 4 4 // SPDX-License-Identifier: MIT 5 5 6 6 import { defineCollection, z, reference } from "astro:content";
+1 -1
src/pages/authors/index.astro
··· 1 1 --- 2 2 // SPDX-FileCopyrightText: 2025 Norbert Melzer 3 3 // SPDX-FileContributor: Norbert Melzer 4 - // 4 + // 5 5 // SPDX-License-Identifier: MIT 6 6 7 7 import { getCollection } from "astro:content";
+1 -1
src/pages/blog/[date]-[slug].astro
··· 1 1 --- 2 2 // SPDX-FileCopyrightText: 2025 Norbert Melzer 3 3 // SPDX-FileContributor: Norbert Melzer 4 - // 4 + // 5 5 // SPDX-License-Identifier: MIT 6 6 7 7 import type { GetStaticPaths } from "astro";
+3 -5
src/pages/blog/[page].astro
··· 12 12 import PaginateButton from "../../components/PaginateButton.astro"; 13 13 import NobbzDev from "../../layouts/NobbzDev.astro"; 14 14 15 - import {byDate} from "../../scripts/sorter"; 15 + import { byDate } from "../../scripts/sorter"; 16 16 17 17 export const getStaticPaths = (async ({ paginate }) => { 18 18 const blogEntries = await getCollection("blog").then( 19 - (collection: CollectionEntry<"blog">[]) => 20 - collection.sort(byDate), 19 + (collection: CollectionEntry<"blog">[]) => collection.sort(byDate), 21 20 ); 22 21 return paginate(blogEntries, { pageSize: 5 }); 23 22 }) satisfies GetStaticPaths; ··· 35 34 <PaginateButton href={page.url.first}>&lt;&lt;</PaginateButton> 36 35 <PaginateButton href={page.url.prev}>&lt;</PaginateButton> 37 36 <PaginateButton href={page.url.next}>&gt;</PaginateButton> 38 - <PaginateButton href={page.url.last}>&gt;&gt;</PaginateButton 39 - > 37 + <PaginateButton href={page.url.last}>&gt;&gt;</PaginateButton> 40 38 </div> 41 39 </NobbzDev>
+2 -2
src/pages/blog/index.astro
··· 1 1 --- 2 2 // SPDX-FileCopyrightText: 2025 Norbert Melzer 3 3 // SPDX-FileContributor: Norbert Melzer 4 - // 4 + // 5 5 // SPDX-License-Identifier: MIT 6 6 7 - return Astro.rewrite('/blog/1') 7 + return Astro.rewrite("/blog/1"); 8 8 ---
+1 -1
src/pages/imprint/index.astro
··· 1 1 --- 2 2 // SPDX-FileCopyrightText: 2025 Norbert Melzer 3 3 // SPDX-FileContributor: Norbert Melzer 4 - // 4 + // 5 5 // SPDX-License-Identifier: MIT 6 6 7 7 import NobbzDev from "../../layouts/NobbzDev.astro";
+1 -1
src/pages/index.astro
··· 1 1 --- 2 2 // SPDX-FileCopyrightText: 2025 Norbert Melzer 3 3 // SPDX-FileContributor: Norbert Melzer 4 - // 4 + // 5 5 // SPDX-License-Identifier: MIT 6 6 7 7 import NobbzDev from "../layouts/NobbzDev.astro";
+1 -1
src/scripts/authors.ts
··· 1 1 // SPDX-FileCopyrightText: 2025 Norbert Melzer 2 2 // SPDX-FileContributor: Norbert Melzer 3 - // 3 + // 4 4 // SPDX-License-Identifier: MIT 5 5 6 6 import { getCollection, type CollectionEntry } from "astro:content";
+1 -1
src/scripts/paths.ts
··· 1 1 // SPDX-FileCopyrightText: 2025 Norbert Melzer 2 2 // SPDX-FileContributor: Norbert Melzer 3 - // 3 + // 4 4 // SPDX-License-Identifier: MIT 5 5 6 6 import type { CollectionEntry } from "astro:content";