Don't know how to render a block!
17 |{JSON.stringify(record, null, 2)}
18 | >
19 | );
20 | }}
21 | />
22 | ├── .eslintrc.json ├── .env.local.example ├── .gitignore ├── preview.png ├── app ├── globals.css ├── api │ ├── exit-draft │ │ └── route.js │ ├── draft │ │ └── route.js │ ├── preview-links │ │ └── route.js │ ├── post-install │ │ └── route.js │ └── seo-readability-metadata │ │ └── route.js ├── layout.js ├── page.js └── posts │ └── [slug] │ └── page.js ├── next.config.js ├── postcss.config.js ├── netlify.toml ├── components ├── section-separator.js ├── container.js ├── date.js ├── post-title.js ├── header.js ├── draft-post-page.js ├── draft-post-index.js ├── avatar.js ├── cover-image.js ├── post-index.js ├── post-page.js ├── more-stories.js ├── post-body.js ├── intro.js ├── post-preview.js ├── post-header.js ├── hero-post.js ├── footer.js └── alert.js ├── jsconfig.json ├── lib ├── fragments.js └── datocms.js ├── datocms.json ├── package.json ├── tailwind.config.js └── README.md /.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /.env.local.example: -------------------------------------------------------------------------------- 1 | NEXT_DATOCMS_API_TOKEN= 2 | NEXT_DATOCMS_PREVIEW_SECRET= -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .env 2 | .env.local 3 | .now 4 | .next 5 | node_modules/ 6 | out/ -------------------------------------------------------------------------------- /preview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datocms/nextjs-demo/HEAD/preview.png -------------------------------------------------------------------------------- /app/globals.css: -------------------------------------------------------------------------------- 1 | @tailwind base; 2 | @tailwind components; 3 | @tailwind utilities; 4 | -------------------------------------------------------------------------------- /next.config.js: -------------------------------------------------------------------------------- 1 | /** @type {import('next').NextConfig} */ 2 | const nextConfig = {} 3 | 4 | module.exports = nextConfig 5 | -------------------------------------------------------------------------------- /postcss.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | plugins: { 3 | tailwindcss: {}, 4 | autoprefixer: {}, 5 | }, 6 | } 7 | -------------------------------------------------------------------------------- /netlify.toml: -------------------------------------------------------------------------------- 1 | [build] 2 | publish = ".next" 3 | command = "npm run build" 4 | 5 | [[plugins]] 6 | package = "@netlify/plugin-nextjs" -------------------------------------------------------------------------------- /components/section-separator.js: -------------------------------------------------------------------------------- 1 | export default function SectionSeparator() { 2 | return
Don't know how to render a block!
17 |{JSON.stringify(record, null, 2)}
18 | >
19 | );
20 | }}
21 | />
22 | {excerpt}
30 |{excerpt}
34 |