A starter template for Next.JS with Tailwind and MDX. Intentionally limited feature-set to keep things simple. (If you want a more comprenhensive starter template check out https://github.com/timlrx/tailwind-nextjs-starter-blog).
Includes instructions on how to rapidly customize the site.
Preview online at https://nextjs-tailwind-mdx-tau.vercel.app
Pre-configured with the following;
/content/
gets auto-rendered into the site.Configuration
below.components/Layout.js
. Used to provide a standard them for all pages. Customizable NavBar and Footer with configurable nav links.Execute create-next-app
with npm or Yarn to bootstrap the example:
npx create-next-app --example https://github.com/datopian/nextjs-tailwind-mdx myapp
# or
yarn create next-app --example https://github.com/datopian/nextjs-tailwind-mdx myapp
Then run the app:
cd myapp
npm run dev
See config
directory:
config/siteConfig.js
for site wide configuration especially for general theme (e.g. title) and SEOconfig/navLinks.js
for configuration of navigation linksOpen up pages/[...slug].js
and change the CONTENT_PATH
variable.
We suggest the following:
public/favicon.ico
or use the svg favicon ...public
e.g. then open components/layout.js
and replace footer logo linkTweaking the theme in general: open up components/Layout.js
and tweak away.