diff --git a/website/content/docs/add-to-your-site.md b/website/content/docs/add-to-your-site.md
index 6b71249e..d2176b40 100755
--- a/website/content/docs/add-to-your-site.md
+++ b/website/content/docs/add-to-your-site.md
@@ -15,7 +15,8 @@ A static `admin` folder contains all Netlify CMS files, stored at the root of yo
| These generators ... | store static files in |
| ---------------------------------- | --------------------- |
| Jekyll, GitBook | `/` (project root) |
-| Hugo, Gatsby, Nuxt, Next, Gridsome, Zola | `/static` |
+| Hugo, Gatsby, Nuxt, Gridsome, Zola | `/static` |
+| Next | `/public` |
| Hexo, Middleman, Jigsaw | `/source` |
| Spike | `/views` |
| Wyam | `/input` |
diff --git a/website/content/docs/nextjs.md b/website/content/docs/nextjs.md
index 3924d02c..9930d809 100644
--- a/website/content/docs/nextjs.md
+++ b/website/content/docs/nextjs.md
@@ -31,8 +31,8 @@ touch pages/index.js
mkdir content
touch content/home.md
-#Create a folder for static assets
-mkdir static
+# Create a folder for static assets
+mkdir public
```
@@ -62,7 +62,7 @@ cats:
name: Maru (まる)
- description: Lil Bub is an American celebrity cat known for her unique appearance.
name: Lil Bub
- - description: 'Grumpy cat is an American celebrity cat known for her grumpy appearance. '
+ - description: 'Grumpy cat is an American celebrity cat known for her grumpy appearance.'
name: Grumpy cat (Tardar Sauce)
---
Welcome to my awesome page about cats of the internet.
@@ -90,25 +90,31 @@ module.exports = {
Almost there! The last thing we need to do is to add some content our ```pages/index.js``` file. With a little help of our webpack loader, we can now easilly import Markdown files:
```js
-import React, { Component } from 'react'
+import Head from "next/head"
+import { Component } from 'react'
import content from '../content/home.md';
export default class Home extends Component {
render() {
let { html , attributes:{ title, cats } } = content;
return (
-
+ <>
+
+
+
+
{title}
-
+
- { cats.map((cat, k) => (
- -
-
{cat.name}
- {cat.description}
-
- ))}
+ {cats.map((cat, k) => (
+ -
+
{cat.name}
+ {cat.description}
+
+ ))}
-
+
+ >
)
}
}
@@ -122,19 +128,19 @@ npm run dev
## Adding Netlify CMS
-There are many different ways to add Netlify CMS to your project. The easiest is probably just to embed it from a CDN, and that's exactly what we're gonna do. To avoid making this guide too complicated, we're just going to add Netlify into a subfolder inside the ```/static``` directory (which is just served as static files by Next):
+There are many different ways to add Netlify CMS to your project. The easiest is probably just to embed it from a CDN, and that's exactly what we're gonna do. To avoid making this guide too complicated, we're just going to add Netlify into a subfolder inside the ```/public``` directory (which is just served as static files by Next):
```bash
# Create and navigate into static/admin folder
-mkdir static/admin
-cd static/admin
+mkdir public/admin
+cd public/admin
# Create index.html and config.yml file
touch index.html
touch config.yml
```
-Paste HTML for Netlify CMS into your ``static/admin/index.html`` file (check out the [Add Netlify To Your Site](https://www.netlifycms.org/docs/add-to-your-site/) section for more information)
+Paste HTML for Netlify CMS into your ``public/admin/index.html`` file (check out the [Add Netlify To Your Site](https://www.netlifycms.org/docs/add-to-your-site/) section for more information)
```html
@@ -147,19 +153,20 @@ Paste HTML for Netlify CMS into your ``static/admin/index.html`` file (check out
-
+