This is a Next.js, Chakra UI blogging starter template.
Check out the documentation below to get started.
Feature request? Check the past discussions to see if it has been brought up previously. Otherwise, feel free to start a new discussion thread. All ideas are welcomed!
- JS (official support)
npx create-next-app --example https://github.com/veiko/chakra-nextjs-blog-starter.git
# or
yarn create next-app --example https://github.com/veiko/chakra-nextjs-blog-starter.git
- Next steps
npm install
First, run the development server:
npm run dev
#or
yarn dev
Open http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying pages/index.js
. The page auto-updates as you edit the file.
data/siteMetadata.js
- contains most of the site related information which should be modified for a user's need.
layouts
- main templates used in pages.
pages
- pages to route to. Read the Next.js documentation for more information.
next.config.js
- configuration related to Next.js. You need to adapt the Content Security Policy if you want to load scripts, images etc. from other domains.
Run node ./scripts/compose.js
to bootstrap a new post.
Follow the interactive prompt to generate a post with pre-filled front matter.
Vercel
The easiest way to deploy the template is to use the Vercel Platform from the creators of Next.js. Check out the Next.js deployment documentation for more details.
Netlify / GitHub Pages / Firebase etc.
As the template uses next/image
for image optimization, additional configurations have to be made to deploy on other popular static hosting websites like Netlify or GitHub Pages. An alternative image optimization provider such as Imgix, Cloudinary or Akamai has to be used. Alternatively, replace the next/image
component with a standard <img>
tag. See next/image
documentation for more details.