Skip to content

Latest commit

 

History

History
35 lines (20 loc) · 1.02 KB

README.md

File metadata and controls

35 lines (20 loc) · 1.02 KB

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

step

  1. Download code git clone https://github.com/officialrajdeepsingh/contentLayerNetlifycms.git
  2. Run the npm install
  3. To start local develpoment server run npm run dev

Note

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

Aricle list for more learning

  1. https://medium.com/nextjs/how-to-install-contentlayer-in-nextjs-4a08fb37c87d
  2. https://medium.com/nextjs/how-to-build-the-static-blog-with-content-layer-markdown-and-nextjs-29f6ac93d06
  3. https://medium.com/nextjs/how-to-create-pagination-with-a-contentlayer-in-next-js-d2d80bb0a3d5