mirror of
https://github.com/theoludwig/theoludwig.git
synced 2025-05-29 22:37:44 +02:00
chore: better Prettier config for easier reviews
This commit is contained in:
@ -1,8 +1,8 @@
|
||||
import { Loader } from '@/components/design/Loader'
|
||||
import { Loader } from "@/components/design/Loader"
|
||||
|
||||
const Loading = (): JSX.Element => {
|
||||
return (
|
||||
<main className='flex flex-col flex-1 items-center justify-center'>
|
||||
<main className="flex flex-col flex-1 items-center justify-center">
|
||||
<Loader />
|
||||
</main>
|
||||
)
|
||||
|
@ -1,10 +1,10 @@
|
||||
import type { Metadata } from 'next'
|
||||
import { notFound } from 'next/navigation'
|
||||
import type { Metadata } from "next"
|
||||
import { notFound } from "next/navigation"
|
||||
|
||||
import 'katex/dist/katex.min.css'
|
||||
import "katex/dist/katex.min.css"
|
||||
|
||||
import { getBlogPostBySlug } from '@/blog/blog'
|
||||
import { BlogPost } from '@/blog/BlogPost'
|
||||
import { getBlogPostBySlug } from "@/blog/blog"
|
||||
import { BlogPost } from "@/blog/BlogPost"
|
||||
|
||||
interface BlogPostPageProps {
|
||||
params: {
|
||||
@ -13,7 +13,7 @@ interface BlogPostPageProps {
|
||||
}
|
||||
|
||||
export const generateMetadata = async (
|
||||
props: BlogPostPageProps
|
||||
props: BlogPostPageProps,
|
||||
): Promise<Metadata> => {
|
||||
const blogPost = await getBlogPostBySlug(props.params.slug)
|
||||
if (blogPost == null) {
|
||||
@ -26,12 +26,12 @@ export const generateMetadata = async (
|
||||
description,
|
||||
openGraph: {
|
||||
title,
|
||||
description
|
||||
description,
|
||||
},
|
||||
twitter: {
|
||||
title,
|
||||
description
|
||||
}
|
||||
description,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user