Skip to content

Commit

Permalink
remove configuration for individual pages
Browse files Browse the repository at this point in the history
  • Loading branch information
ob6160 committed Nov 2, 2024
1 parent 8e03a11 commit 54b7d34
Show file tree
Hide file tree
Showing 7 changed files with 140 additions and 255 deletions.
138 changes: 0 additions & 138 deletions content/pages/about.mdx

This file was deleted.

7 changes: 0 additions & 7 deletions content/pages/home.mdx

This file was deleted.

19 changes: 0 additions & 19 deletions content/posts/test-post.md

This file was deleted.

11 changes: 1 addition & 10 deletions src/pages/About.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import React from 'react';

import AboutPage from '../pages/about.page';
import Main from '../components/Main';
import { allPages } from 'content-collections';

export default {
component: AboutPage,
Expand All @@ -13,13 +12,5 @@ export default {
* About page
*/
export const About = (props) => {
return (
<Main
Component={AboutPage}
pageProps={{
...props,
pageData: allPages.find((post) => post._meta.fileName === 'about.mdx'),
}}
/>
);
return <Main Component={AboutPage} pageProps={props} />;
};
12 changes: 1 addition & 11 deletions src/pages/Index.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import LooMap from '../components/LooMap/LooMapLoader';
import Main from '../components/Main';

import IndexPageNext from '../pages/index.page';
import { allPages } from 'content-collections';

export default {
name: 'Pages',
Expand All @@ -16,15 +15,6 @@ export default {
* Index
*/
export const Index = (props) => {
return (
<Main
Component={IndexPageNext}
pageProps={{
...props,
pageData: allPages.find((post) => post._meta.fileName === 'index.mdx'),
}}
map={<LooMap />}
/>
);
return <Main Component={IndexPageNext} pageProps={props} map={<LooMap />} />;
};
Index.storyName = 'Home Page';
Loading

0 comments on commit 54b7d34

Please sign in to comment.