+1
-1
src/components/Date.astro
+1
-1
src/components/Date.astro
+1
-1
src/components/NoteBox.astro
+1
-1
src/components/NoteBox.astro
+3
-1
src/components/PaginateButton.astro
+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
+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
src/components/Typography.ts
+1
-1
src/components/typography/H1.astro
+1
-1
src/components/typography/H1.astro
+1
-1
src/content/blog/001-hello-world/index.mdx
+1
-1
src/content/blog/001-hello-world/index.mdx
+1
-1
src/content/blog/002-callpackage-a-tool-for-the-lazy/index.mdx
+1
-1
src/content/blog/002-callpackage-a-tool-for-the-lazy/index.mdx
+1
-1
src/content/blog/003-getting-inputs-to-modules-in-a-flake/index.mdx
+1
-1
src/content/blog/003-getting-inputs-to-modules-in-a-flake/index.mdx
+1
-1
src/content/blog/004-12in23/index.mdx
+1
-1
src/content/blog/004-12in23/index.mdx
+1
-1
src/content/blog/005-nixos-flakes-command-not-found/index.mdx
+1
-1
src/content/blog/005-nixos-flakes-command-not-found/index.mdx
+1
-1
src/content/config.ts
+1
-1
src/content/config.ts
+1
-1
src/content/schemas/blog.ts
+1
-1
src/content/schemas/blog.ts
+1
-1
src/pages/blog/[date]-[slug].astro
+1
-1
src/pages/blog/[date]-[slug].astro
+3
-5
src/pages/blog/[page].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}><<</PaginateButton>
36
35
<PaginateButton href={page.url.prev}><</PaginateButton>
37
36
<PaginateButton href={page.url.next}>></PaginateButton>
38
-
<PaginateButton href={page.url.last}>>></PaginateButton
39
-
>
37
+
<PaginateButton href={page.url.last}>>></PaginateButton>
40
38
</div>
41
39
</NobbzDev>
+2
-2
src/pages/blog/index.astro
+2
-2
src/pages/blog/index.astro
+1
-1
src/pages/imprint/index.astro
+1
-1
src/pages/imprint/index.astro
+1
-1
src/pages/index.astro
+1
-1
src/pages/index.astro