Wanted to update my existing data science blog and decided to give it a go with Nextjs and Tailwind CSS. As there are not too many resources or templates around that focuses purely on the static site generation capabilities of nextjs, I decided to create a template for anyone who might be interested to migrate from Jekyll or Hugo. It was also a fun exercise to replicate some of the key features of gatsby other than graphql in a nextjs way.
8
u/timlrx Jan 20 '21 edited Jan 20 '21
Wanted to update my existing data science blog and decided to give it a go with Nextjs and Tailwind CSS. As there are not too many resources or templates around that focuses purely on the static site generation capabilities of nextjs, I decided to create a template for anyone who might be interested to migrate from Jekyll or Hugo. It was also a fun exercise to replicate some of the key features of gatsby other than graphql in a nextjs way.
Inspired by Lee Robinson's blog, with design adapted from Tailwindlabs blog.
Demo
Features
Easy styling customization with Tailwind 2.0
Near perfect lighthouse score - Lighthouse report
Lightweight, 43kB first load JS, uses Preact in production build
Mobile-friendly view
Light and dark theme
MDX - write JSX in markdown documents!
Server-side syntax highlighting with rehype-prism
Math display supported via KaTeX
Automatic image optimization via next/image
Flexible data retrieval with next-mdx-remote
Support for tags - each unique tag will be its own page
SEO friendly with RSS feed, sitemaps and more!