Skip to content

Commit ee0d23a

Browse files
committed
Fix prettier setup. Add a redirect for the fragments post.
1 parent 423d125 commit ee0d23a

3 files changed

Lines changed: 8 additions & 3 deletions

File tree

File renamed without changes.

astro.config.mjs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,10 @@ export default defineConfig({
88
wrap: false,
99
},
1010
},
11+
redirects: {
12+
"/blog/engineering/graphql-fragments": {
13+
status: 302,
14+
destination: "/blog/engineering/graphql-fragments-why-are-they-useful",
15+
},
16+
},
1117
});

src/pages/blog/[...path].astro

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
22
import { getCollection } from "astro:content";
3-
import BaseLayout from "../../layouts/BaseLayout.astro";
4-
import Navigation from "../../components/Navigation.astro";
53
import Footer from "../../components/Footer.astro";
4+
import Navigation from "../../components/Navigation.astro";
5+
import BaseLayout from "../../layouts/BaseLayout.astro";
66
import { generateJekyllSlug } from "../../utils/jekyll-urls";
77
88
export async function getStaticPaths() {
@@ -58,4 +58,3 @@ function formatDate(date: Date): string {
5858
</article>
5959
<Footer />
6060
</BaseLayout>
61-

0 commit comments

Comments
 (0)