diff --git a/src/layouts/work.astro b/src/layouts/work.astro deleted file mode 100644 index 43aaaf90..00000000 --- a/src/layouts/work.astro +++ /dev/null @@ -1,62 +0,0 @@ ---- -import type { MarkdownLayoutProps } from 'astro'; -import Layout, { type Props as DefaultLayoutProps } from './default.astro'; - -export type Props = MarkdownLayoutProps; -const { frontmatter } = Astro.props; ---- - - -
- { - frontmatter.headline && ( - - ) - } -
- -
-
-
- - diff --git a/src/pages/arbeid/[...slug].astro b/src/pages/arbeid/[...slug].astro index 8d3dfff0..f64dd38e 100644 --- a/src/pages/arbeid/[...slug].astro +++ b/src/pages/arbeid/[...slug].astro @@ -1,6 +1,6 @@ --- import { getCollection } from 'astro:content'; -import Layout from '@layouts/work.astro'; +import Layout from '@layouts/default.astro'; export async function getStaticPaths() { const blogEntries = await getCollection('project'); @@ -14,7 +14,32 @@ const { entry } = Astro.props; const { Content } = await entry.render(); --- - -

{entry.data.title}

- + +
+

{entry.data.title}

+ +
+ +