BlogPress is an open-source template repository designed to create a scalable and customizable blog using Next.js and Sanity.io. It offers a modern alternative to platforms like WordPress and Medium, empowering developers and content creators to build and manage their blogs with ease. This template focuses on scalability, performance, and maintainability, making it a perfect starting point for your own blogging platform.
- Clone this repository:
git clone https://github.com/honeyhexa/blogpress---template.git
- Navigate to the project directory:
cd blogpress
- Install dependencies:
npm install
- Create a
.env.local
file in the root directory with.env.local.example
- Run the development server:
npm run dev
- Open your browser and navigate to
http://localhost:3000
to see your BlogPress instance in action.
The template's code structure is organized for maintainability and extensibility. Here's an overview of the key directories and files:
app/
: Houses Next.js page components that correspond to different routes.lib/sanity
: Configuration files and schema for your Sanity.io CMS.
- Implement post hero section
- Implement mdx components
- Implement table of contents
- Implement blog listing
- Implement social sharing
- Implement dark / light mode
Contributions are welcome and greatly appreciated! If you'd like to contribute to BlogPress, please follow these steps:
- Fork the repository.
- Create a new branch for your feature/fix:
git checkout -b feature-name
. - Make your changes and ensure the code follows the project's coding standards.
- Commit your changes:
git commit -m "Add a descriptive commit message"
. - Push the changes to your fork:
git push origin feature-name
. - Open a pull request, describing your changes and their purpose clearly.
This project is licensed under the MIT License.
Feel free to use BlogPress to kickstart your blog development journey or to enhance your existing blogging platform. We hope you find it valuable and contribute to making it even better! If you have any questions or feedback, please don't hesitate to open an issue or reach out to us.
Happy blogging with BlogPress! 🚀