Build static website with markdown, contentlayer,netlify cms and nextjs. In nextjs we provide sitemap, SEO, pagination and Search support and deploy with netlify cms
- Download code
git clone https://github.com/officialrajdeepsingh/contentLayerNetlifycms.git
- Run the
npm install
- To start local develpoment server run
npm run dev
change your localhost:3000
url in ./config.js
url and as well show_per_page
post number on blog.
// config.js
const SITE_URL= 'https://ephemeral-rolypoly-2f9988.netlify.app'
or
const SITE_URL= 'http://localhost:3000'
// const SITE_URL = process.env.SITE_URL // it is not working properly
export const show_per_page = 10