Statically generated blog & documentation website.
This repo can also be used as a template for your own personal website. Built using Next.js, TailwindCSS and React.
The final output is html and js files that can be hosted on any CDN like github pages, vercel, netlify, cloudflare pages etc and does not need any computation during runtime.
Forked from Next.js's blog-starter.
The blog posts are stored in /_posts as Markdown files with front matter support. Adding a new Markdown file in there will create a new blog post.
To create the blog posts we use remark and remark-html to convert the Markdown files into an HTML string, and then send it down as a prop to the page. The metadata of every post is handled by gray-matter and also sent in props to the page.
After cloning
cd path/to/repo
npm iDownload necessary files, this fetches project related info and available docs for each from github
npm run fetchRun dev server
npm run devYour blog should be up and running on http://localhost:3000!
To deploy on any cloud or cdn
npm run exportThis fetches required data from github and generates final html, css, js bundles at /out directory.
Host the contents of this directory to cloud.
/config/site.json- website related settings./config/projects.json- List the projects hosted on github for which docs will be created.
blog-starteruses Tailwind CSS (v3.0).- Create new themes using uicolors.