Skip to content

Commit 4d9a972

Browse files
committed
something
1 parent 24f9b50 commit 4d9a972

File tree

11 files changed

+50
-15
lines changed

11 files changed

+50
-15
lines changed

astro.config.mjs

+3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ import mdx from "@astrojs/mdx";
55
// https://astro.build/config
66
export default defineConfig({
77
site: "https://laker.tech",
8+
redirects: {
9+
"/now": "/now",
10+
},
811
image: {
912
domains: ["cdn.laker.tech"],
1013
},

public/images/sp.jpeg

46.6 KB
Loading

src/components/Warning.astro

+3-4
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,19 @@ import Icon from "./Icon.astro";
33
44
interface Props {
55
icon?: string;
6-
text: string;
76
}
87
9-
const { icon, text } = Astro.props;
8+
const { icon } = Astro.props;
109
---
1110

12-
<div class="under-constructio">
11+
<div>
1312
<span>
1413
<Icon
1514
li={false}
1615
override={icon}
1716
fallback="fa-solid fa-triangle-exclamation"
1817
/>
19-
{text || "You forgot to set text here, Laker."}
18+
<slot />
2019
</span>
2120
</div>
2221

src/content/blog/mier1.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
draft: true
3+
title: Music I've enjoyed recently, pt 1
4+
description: I wanted a reason to talk about music
5+
pubDate: 2024-08-24
6+
tags: ["music", "mier"]
7+
image:
8+
src: /images/sp.jpeg
9+
alt: aaaaaaa
10+
---
11+
something

src/content/config.ts

+11-7
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@ const postsCollection = defineCollection({
1313
author: z.string().default("Laker Turner"),
1414
image: z
1515
.object({
16-
url: z.string(),
16+
src: z.string(),
1717
alt: z.string(),
1818
})
1919
.optional(),
2020
tags: z.array(z.string()),
21+
cw: z.string().optional(),
2122
}),
2223
});
2324

@@ -38,11 +39,14 @@ const projectsCollection = defineCollection({
3839
title: z.string(),
3940
pubDate: z.date().optional(),
4041
description: z.string().default("no description"),
41-
url: z.object({
42-
source: z.string().url(),
43-
external: z.string().url(),
44-
}).optional(),
45-
image: z.object({
42+
url: z
43+
.object({
44+
source: z.string().url(),
45+
external: z.string().url(),
46+
})
47+
.optional(),
48+
image: z
49+
.object({
4650
url: z.string(),
4751
alt: z.string(),
4852
})
@@ -56,4 +60,4 @@ export const collections = {
5660
blog: postsCollection,
5761
notes: notesCollection,
5862
projects: projectsCollection,
59-
};
63+
};
File renamed without changes.

src/layouts/PageLayout.astro

+4-2
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,13 @@ const { pageTitle, description, back, icon, uc } = Astro.props;
3434
() => {
3535
if (uc) {
3636
return (
37-
<Warning text="This page is under construction, don't lose your towel!" />
37+
<Warning>
38+
This page is under construction, don't lose your towel!
39+
</Warning>
3840
);
3941
}
4042
}
4143
}
4244

4345
<slot />
44-
</BaseLayout>
46+
</BaseLayout>

src/layouts/collections/BlogPostLayout.astro

+10
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
---
22
import BaseLayout from "../BaseLayout.astro";
33
import FormattedDate from "@cmp/FormattedDate.astro";
4+
import Warning from "@cmp/Warning.astro";
5+
import { Image } from "astro:assets";
46
57
const { frontmatter, slug } = Astro.props;
68
---
@@ -25,6 +27,14 @@ const { frontmatter, slug } = Astro.props;
2527
}
2628
</div>
2729

30+
{
31+
() => {
32+
if (frontmatter.cw) {
33+
return <Warning>{frontmatter.cw}</Warning>;
34+
}
35+
}
36+
}
37+
2838
<slot />
2939

3040
<div class="box">

src/pages/me/now.astro

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
// this is broken in my dev enviroment
3+
return Astro.rewrite("/now")
4+
---

src/pages/now.mdx

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
layout: ../layouts/MDXLayout.astro
2+
layout: ../layouts/MDLayout.astro
33
pageTitle: Now
44
description: What I'm doing now, if i remember to update it.
55
lastUpdated: 2024-08-22
@@ -11,3 +11,5 @@ icon: fa-solid fa-calendar-days
1111
I'm doing.... alright. I'm enrolling in college this time next week.
1212

1313
I've spent the last 5 weeks doing mostly nothing. Rewrote this site though, which was pretty fun.
14+
15+
test

src/styles/global.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
system-ui, sans-serif;
3030
--font-prose: "OpenDyslexic", "Atkinson Hyperlegible", "IBM Plex Sans",
3131
system-ui, sans-serif;
32-
--font-code: "IBM Plex Mono";
32+
--font-code: "IBM Plex Mono", monospace;
3333

3434
--padding-def: 1.24em;
3535
}

0 commit comments

Comments
 (0)