{"id":16144667,"url":"https://github.com/officialrajdeepsingh/contentlayer","last_synced_at":"2025-04-23T04:05:30.073Z","repository":{"id":127079340,"uuid":"491527869","full_name":"officialrajdeepsingh/contentlayer","owner":"officialrajdeepsingh","description":"Create a markdown blog with nextjs, content layer","archived":false,"fork":false,"pushed_at":"2022-08-20T13:45:27.000Z","size":7999,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-23T04:05:24.260Z","etag":null,"topics":["content-layer","contentlayer-nextjs","contentlayer-typescript","markdown","markdown-blog"],"latest_commit_sha":null,"homepage":"https://contentlayer-iota.vercel.app","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/officialrajdeepsingh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-05-12T13:35:22.000Z","updated_at":"2024-04-25T17:00:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"a8777436-4b79-42c1-846f-a36414ec56ad","html_url":"https://github.com/officialrajdeepsingh/contentlayer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/officialrajdeepsingh%2Fcontentlayer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/officialrajdeepsingh%2Fcontentlayer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/officialrajdeepsingh%2Fcontentlayer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/officialrajdeepsingh%2Fcontentlayer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/officialrajdeepsingh","download_url":"https://codeload.github.com/officialrajdeepsingh/contentlayer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250366726,"owners_count":21418771,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["content-layer","contentlayer-nextjs","contentlayer-typescript","markdown","markdown-blog"],"created_at":"2024-10-10T00:13:49.802Z","updated_at":"2025-04-23T04:05:30.035Z","avatar_url":"https://github.com/officialrajdeepsingh.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Build static website with markdown, contentlayer,netlify cms and nextjs.\nIn nextjs we provide sitemap, SEO, pagination and Search support and deploy with netlify cms\n\nIn the New update, i fix search issue and add login functionalty in blog\n\n## step\n1. Download code `git clone https://github.com/officialrajdeepsingh/contentlayer.git`\n2. Run the `npm install`\n3. To start local develpoment server run ` npm run dev`\n\n## Note \nTo run project in your laptop. you need to change in two files.\n1. `config.js`\n2. `.env.local`\n\n### `config.js`\nchange your ` localhost:3000 ` url in `./config.js` url and as well `show_per_page` post number on blog.\n\n```javascript\n// config.js\n\nconst SITE_URL= 'https://content-layer-netlifycms-vercel.vercel.app'\n\nor\n\nconst SITE_URL= 'http://localhost:3000'\n\n// const SITE_URL = process.env.SITE_URL  // it is not working properly\n\nexport const show_per_page = 10\n\n```\n### `.env.local`\nThe place you change in environment variable and replace with your `github client key` and `github client secret`\n\n```javascript\nGITHUB_SECRET=\"4d8e8331*********2fa6d60e0437f\"\nGITHUB_ID=\"9da4153**********f6cc\"\n\nNEXTAUTH_SECRET=\"WhS/GiDVfo+n1kL8Yv0GWkVw59hxc1oI/mSMtwwtkW4=\"\n\nSECRET_ID=\"WhS/GiDVfo+n1kL8Yv0GWkVw59hxc1oI/mSMtwwtkW4=\"\n\nNEXTAUTH_URL= 'http://localhost:3000/'\n```\n\n\n### Aricle list for more learning\n1. https://medium.com/nextjs/how-to-install-contentlayer-in-nextjs-4a08fb37c87d\n2. https://medium.com/nextjs/how-to-build-the-static-blog-with-content-layer-markdown-and-nextjs-29f6ac93d06\n3. https://medium.com/nextjs/how-to-create-pagination-with-a-contentlayer-in-next-js-d2d80bb0a3d5\n4. https://medium.com/nextjs/how-to-set-up-netlify-cms-with-the-content-layer-and-nextjs-5da41c260933","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fofficialrajdeepsingh%2Fcontentlayer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fofficialrajdeepsingh%2Fcontentlayer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fofficialrajdeepsingh%2Fcontentlayer/lists"}