Skip to content

Commit 14aa900

Browse files
follow using mdx-remote
1 parent 40bea65 commit 14aa900

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,7 @@ The following instructions introduce common customization points like adding new
5555

5656
### Styling pages by a customized theme
5757

58-
All source codes related to the blog are under [components](/src/components), [pages](/src/pages), and
59-
[layouts](/src/layouts) directory.
58+
All source codes related to the blog are under [components](/src/components) and [pages](/src/pages) directory.
6059
You can modify it freely if you want to apply your design theme.
6160
All components use [styled-jsx](https://github.com/vercel/styled-jsx) and [css-modules](https://github.com/css-modules/css-modules) to define their styles, but you can choose any styling libraries for designing your theme.
6261

@@ -68,7 +67,7 @@ public: images, favicons and other static assets
6867
src
6968
├── assets: other assets using inside of components
7069
├── components: pieces of components consisting of pages
71-
├── layouts: layout components for each post page
70+
├── content: mdx files for each post page
7271
├── lib: project libraries like data fetching or pagination
7372
└── pages: page components managing by Next.js
7473
```
@@ -81,14 +80,14 @@ Then reference these implementations for adding new metadata:
8180
- [public/admin/config.yml](/public/admin/config.yml#L51): author metadata definition for Netlify CMS
8281
- [src/lib/authors.tsx](/src/lib/authors.ts): fetches metadata and defines utility functions for components
8382
- [meta/authors.yml](/src/meta/authors.yml): author content managed by Netlify CMS
84-
- [layouts/index.tsx](/src/layouts/index.tsx): displays author content for each page
83+
- [src/components/PostLayout.tsx](/src/components/PostLayout.tsx): displays author content for each page
8584

8685
You understood they have four steps to add the category metadata on your project after you read the above source codes:
8786

8887
1. Define the category metadata on the above Netlify config file
8988
2. Create an empty file named with `categories.yml` under [meta](/src/meta/) directory
9089
3. Create a new module for fetching category metadata
91-
4. Display the category metadata on [layouts](/src/layouts/index.tsx#L71) or other components you want
90+
4. Display the category metadata on [src/components/PostLayout.tsx](/src/components/PostLayout.tsx#L75) or other components you want
9291

9392
It is all you have to do. After that, you can access Netlify CMS and create new categories at any time.
9493

0 commit comments

Comments
 (0)