tangled
alpha
login
or
join now
vielle.dev
/
site-archive
0
fork
atom
[Archived] Archived WIP of vielle.dev
0
fork
atom
overview
issues
pulls
pipelines
Reorder imports to be more logical
vielle.dev
8 months ago
6d9b4bd6
99a60361
verified
This commit was signed with the committer's
known signature
.
vielle.dev
SSH Key Fingerprint:
SHA256:/4bvxqoEh9iMdjAPgcgAgXKZZQTROL3ULiPt6nH9RSs=
+6
-6
1 changed file
expand all
collapse all
unified
split
src
pages
blog
[id].astro
+6
-6
src/pages/blog/[id].astro
···
2
2
import Base from "@/Base.astro";
3
3
import Nav from "@/components/generic/Nav.astro";
4
4
import LightDarkToggle from "@/components/generic/LightDarkToggle.astro";
5
5
-
6
6
-
import { blog } from "@/config";
7
7
-
const {
8
8
-
post: { light, dark, rainbow },
9
9
-
} = blog.palette;
5
5
+
import CodeHeading from "@/components/blog/CodeHeading.astro";
10
6
11
7
import { render } from "astro:content";
12
8
import { getEntry } from "astro:content";
13
9
import { parse } from "node:path";
14
10
11
11
+
import { blog } from "@/config";
15
12
import "@/components/blog/post.css";
16
16
-
import CodeHeading from "@/components/blog/CodeHeading.astro";
13
13
+
14
14
+
const {
15
15
+
post: { light, dark, rainbow },
16
16
+
} = blog.palette;
17
17
18
18
const { id } = Astro.params;
19
19
if (!id) return Astro.redirect("/404");