Coder Social home page Coder Social logo

wwebdev / nextjs-blog-template Goto Github PK

View Code? Open in Web Editor NEW
9.0 0.0 2.0 832 KB

A simple blog template to quickly get started with writing. It has a clean design and provides a lot of flexibility.

JavaScript 52.43% CSS 47.57%
nextjs react template

nextjs-blog-template's Introduction

Next.js Blog Template

This is a simple blog template to quickly get started with writing. It has a clean design and provides a lot of flexibility.

Demo

Getting Started

This is a Next.js project bootstrapped with create-next-app.

First, run the development server:

npm run dev
# or
yarn dev

Open http://localhost:3000 with your browser to see the result.

Deploy

Deploy with Vercel

Want to deploy somewhere else than Vercel? Check this blog post on how to export Next.js images:

Next.js 11 Images with Static Export

How does it work?

  • In general you can just browse through the repository to get a better understanding on how things work - I left comments on the most important parts.

  • The most important page infos and the navigation can be set in the /content/meta.js. They are used on various places around the website.

  • To add a new blog post create an entry in the /content/posts.js. Then you can create the corresponding page under pages/*.js. The structure of the pages is up to you. Have a look at the demo pages in /pages/blog/ to see how the layout works.

  • You can assign categories to blog posts. Then use the PostList component to render the posts based on the category. Have a look at /pages/index.js to see how it works.

  • The colors and theming can be updated by changing the /styles/variables.css

License

MIT


created by Vincent Will

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.