├── .eslintrc.json ├── next.config.js ├── config.js ├── public ├── banner.png ├── favicon.ico ├── images │ ├── firstway.png │ ├── geenome.png │ ├── next.js.png │ ├── firstway-2.png │ ├── secondway.png │ ├── npm-commands.png │ ├── the-snap-store.png │ ├── gnome-screenshots.png │ ├── npm-init-command-1.png │ ├── HTML-Version-History.jpg │ ├── Title-tag-In-HTML-5.jpg │ ├── next.js-add-css-code.jpg │ ├── Linux-Basic-Introduction--1-.png │ ├── Text-Highlighting-In-HTML-5.png │ └── How-to-capture-screenshots-in-Raspberry-PI-4.png ├── robots.txt ├── sitemap.xml ├── vercel.svg └── sitemap-0.xml ├── pages ├── api │ └── hello.js ├── _app.js ├── Search.js ├── index.js ├── tag │ └── [slug].js ├── category │ └── [slug].js └── blog │ └── [slug].js ├── components ├── Footer.js ├── Banner.js ├── ItemPost.js ├── Post.js ├── Header.js └── Sidebar.js ├── next-sitemap.js ├── next-seo.config.js ├── utils └── index.js ├── posts ├── how-to-add-search-bar-functionality-in-ghost-cms-help-of-searchinghost.md ├── title-tag-in-html-5.md ├── text-highlighting-in-html-5.md ├── how-to-check-the-snap-store-package-available-for-raspberry-pi-4-or-not.md ├── html-version-history.md ├── how-to-capture-screenshots-in-raspberry-pi-4.md ├── keyboard-shortcut-keys-for-linux-terminal.md ├── how-to-add-css-in-next-js.md ├── how-is-npm-install-command.md ├── what-is-next-js.md └── npm-outdated-command.md ├── .gitignore ├── package.json ├── styles ├── globals.css └── Home.module.css ├── README.md └── search.json /.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /next.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | reactStrictMode: true, 3 | } 4 | -------------------------------------------------------------------------------- /config.js: -------------------------------------------------------------------------------- 1 | const SITE_URL= 'https://markdowbnextjsblog.vercel.app/' 2 | 3 | export default SITE_URL -------------------------------------------------------------------------------- /public/banner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/officialrajdeepsingh/markdowbnextjsblog/HEAD/public/banner.png -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/officialrajdeepsingh/markdowbnextjsblog/HEAD/public/favicon.ico -------------------------------------------------------------------------------- /public/images/firstway.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/officialrajdeepsingh/markdowbnextjsblog/HEAD/public/images/firstway.png -------------------------------------------------------------------------------- /public/images/geenome.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/officialrajdeepsingh/markdowbnextjsblog/HEAD/public/images/geenome.png -------------------------------------------------------------------------------- /public/images/next.js.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/officialrajdeepsingh/markdowbnextjsblog/HEAD/public/images/next.js.png -------------------------------------------------------------------------------- /public/images/firstway-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/officialrajdeepsingh/markdowbnextjsblog/HEAD/public/images/firstway-2.png -------------------------------------------------------------------------------- /public/images/secondway.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/officialrajdeepsingh/markdowbnextjsblog/HEAD/public/images/secondway.png -------------------------------------------------------------------------------- /public/images/npm-commands.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/officialrajdeepsingh/markdowbnextjsblog/HEAD/public/images/npm-commands.png -------------------------------------------------------------------------------- /public/images/the-snap-store.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/officialrajdeepsingh/markdowbnextjsblog/HEAD/public/images/the-snap-store.png -------------------------------------------------------------------------------- /public/images/gnome-screenshots.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/officialrajdeepsingh/markdowbnextjsblog/HEAD/public/images/gnome-screenshots.png -------------------------------------------------------------------------------- /public/images/npm-init-command-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/officialrajdeepsingh/markdowbnextjsblog/HEAD/public/images/npm-init-command-1.png -------------------------------------------------------------------------------- /public/images/HTML-Version-History.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/officialrajdeepsingh/markdowbnextjsblog/HEAD/public/images/HTML-Version-History.jpg -------------------------------------------------------------------------------- /public/images/Title-tag-In-HTML-5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/officialrajdeepsingh/markdowbnextjsblog/HEAD/public/images/Title-tag-In-HTML-5.jpg -------------------------------------------------------------------------------- /public/images/next.js-add-css-code.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/officialrajdeepsingh/markdowbnextjsblog/HEAD/public/images/next.js-add-css-code.jpg -------------------------------------------------------------------------------- /public/images/Linux-Basic-Introduction--1-.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/officialrajdeepsingh/markdowbnextjsblog/HEAD/public/images/Linux-Basic-Introduction--1-.png -------------------------------------------------------------------------------- /public/images/Text-Highlighting-In-HTML-5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/officialrajdeepsingh/markdowbnextjsblog/HEAD/public/images/Text-Highlighting-In-HTML-5.png -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- 1 | # * 2 | User-agent: * 3 | Allow: / 4 | 5 | # Host 6 | Host: http://localhost:3000/ 7 | 8 | # Sitemaps 9 | Sitemap: http://localhost:3000/sitemap.xml 10 | -------------------------------------------------------------------------------- /public/images/How-to-capture-screenshots-in-Raspberry-PI-4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/officialrajdeepsingh/markdowbnextjsblog/HEAD/public/images/How-to-capture-screenshots-in-Raspberry-PI-4.png -------------------------------------------------------------------------------- /pages/api/hello.js: -------------------------------------------------------------------------------- 1 | // Next.js API route support: https://nextjs.org/docs/api-routes/introduction 2 | 3 | export default function handler(req, res) { 4 | res.status(200).json({ name: 'John Doe' }) 5 | } 6 | -------------------------------------------------------------------------------- /public/sitemap.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | http://localhost:3000/sitemap-0.xml 4 | -------------------------------------------------------------------------------- /components/Footer.js: -------------------------------------------------------------------------------- 1 | export default function Footer() { 2 | return 5 | } -------------------------------------------------------------------------------- /next-sitemap.js: -------------------------------------------------------------------------------- 1 | /** @type {import('next-sitemap').IConfig} */ 2 | 3 | module.exports = { 4 | siteUrl: process.env.SITE_URL || 'https://example.com', 5 | generateRobotsTxt: true, // (optional) 6 | // Default transformation function 7 | } -------------------------------------------------------------------------------- /next-seo.config.js: -------------------------------------------------------------------------------- 1 | export default { 2 | openGraph: { 3 | type: 'website', 4 | locale: 'en_IE', 5 | url: 'https://markdownnextjs.com', 6 | site_name: 'Rajdeep Singh', 7 | }, 8 | twitter: { 9 | handle: '@Official_R_deep', 10 | site: '@Official_R_deep', 11 | cardType: 'summary_large_image', 12 | } 13 | }; -------------------------------------------------------------------------------- /utils/index.js: -------------------------------------------------------------------------------- 1 | import SITE_URL from "../config"; 2 | 3 | export function sortByDate(a, b) { 4 | return new Date(b.frontmatter.date) - new Date(a.frontmatter.date) 5 | } 6 | 7 | export function slugify(title) { 8 | return title.toLowerCase().trim().replace(/[^\w ]+/g, '').replace(/ +/g, '-'); 9 | } 10 | 11 | export function ImageUrl(url) { 12 | 13 | return SITE_URL + url 14 | 15 | } -------------------------------------------------------------------------------- /posts/how-to-add-search-bar-functionality-in-ghost-cms-help-of-searchinghost.md: -------------------------------------------------------------------------------- 1 | --- 2 | author : "Rajdeep Singh" 3 | date : "2021-10-11T10:41:36Z" 4 | description : "" 5 | draft : true 6 | slug : "how-to-add-search-bar-functionality-in-ghost-cms-help-of-searchinghost" 7 | title : "How to Add Search bar functionality in Ghost Cms Help of SearchinGhost" 8 | 9 | --- 10 | 11 | 12 | 13 | 14 | https://github.com/gmfmi/searchinGhost 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /components/Banner.js: -------------------------------------------------------------------------------- 1 | export default function Banner() { 2 | return( 3 |
4 |
5 |
6 |

Welcome to my blog home page

7 |

Build nextjs blog website with Markdown, sitemap, serachbar, category, tag and SEO support

8 |
9 |
10 |
11 | ) 12 | } -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | /.pnp 6 | .pnp.js 7 | 8 | # testing 9 | /coverage 10 | 11 | # next.js 12 | /.next/ 13 | /out/ 14 | 15 | # production 16 | /build 17 | 18 | # misc 19 | .DS_Store 20 | *.pem 21 | 22 | # debug 23 | npm-debug.log* 24 | yarn-debug.log* 25 | yarn-error.log* 26 | 27 | # local env files 28 | .env.local 29 | .env.development.local 30 | .env.test.local 31 | .env.production.local 32 | 33 | # vercel 34 | .vercel 35 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "markdownblog", 3 | "version": "0.1.0", 4 | "private": true, 5 | "scripts": { 6 | "dev": "next dev", 7 | "build": "next build", 8 | "start": "next start", 9 | "lint": "next lint" 10 | }, 11 | "dependencies": { 12 | "next": "12.1.5", 13 | "react": "18.1.0", 14 | "react-dom": "18.1.0" 15 | }, 16 | "devDependencies": { 17 | "eslint": "7.32.0", 18 | "eslint-config-next": "12.1.5", 19 | "gray-matter": "^4.0.3", 20 | "marked": "^4.0.14", 21 | "next-seo": "^5.4.0", 22 | "next-sitemap": "^2.5.20" 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /styles/globals.css: -------------------------------------------------------------------------------- 1 | html, 2 | body { 3 | padding: 0; 4 | margin: 0; 5 | font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, 6 | Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif; 7 | } 8 | 9 | a { 10 | color: inherit; 11 | text-decoration: none; 12 | } 13 | 14 | * { 15 | box-sizing: border-box; 16 | } 17 | 18 | p img{ 19 | width:750px; 20 | margin: 5px auto; 21 | } 22 | pre{ 23 | background-color: rgba(0, 0, 0, 0.548); 24 | width: 760px; 25 | padding: 6px 18px; 26 | } 27 | code{ 28 | width: 100%; 29 | color: white; 30 | scroll-behavior: smooth; 31 | overflow-x: scroll; 32 | 33 | } -------------------------------------------------------------------------------- /pages/_app.js: -------------------------------------------------------------------------------- 1 | import '../styles/globals.css' 2 | import Head from "next/head"; 3 | import Header from "../components/Header"; 4 | import Footer from "../components/Footer"; 5 | import { DefaultSeo } from 'next-seo'; 6 | import SEO from '../next-seo.config'; 7 | 8 | 9 | function MyApp({ Component, pageProps }) { 10 | return ( <> 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 |