Welcome to the Astro Website Template! This template is designed to help you quickly set up a website using Astro, featuring preconfigured nested routing for blogs, centralized configuration, and a structured content system.
- Nested Routing: Simplify the management and navigation of your blog or documentation or any nesting routing purpose.
- Centralized Configuration: Manage site settings like page titles, descriptions, and more from a single location.
- Content API Integration: Utilize Astro's Content API with a defined schema for dynamic and easy content updates.
- Assets Management: Seperate dir to manage and maintain the assets including your stylesheet if any.
- Customized 404 page: Completely customized pre-configured not found page located in pages dir.
Before you begin, ensure you have installed:
- Node.js
- npm
- Clone the repository or download the zip file.
- Navigate to the project directory and install dependencies:
npm install
- Start the development server:
npm run dev
- Build your site for production:
npm run build
- Preview your production build:
npm run preview
After installing this make sure to visit
/nesting
to see more, nesting routes.
Edit the src/config/config.json
file to customize global settings for your site. Manage your content by adding or modifying markdown files in the src/content/
directory, ensuring they adhere to the schema defined in src/content/config.ts
validated by zod
.
This template is designed to be easily customizable. You can add styles, assets, and components to fit your needs:
- Styles: Customize or add new stylesheets in the
src/assets/css
directory. - Assets: Place images, icons, and other assets in
src/assets/images
directory. - Components: Reuse or create new components within the
src/components
directory. - Content: It is using Astro content api so play with
src/content/
and make sure to add the schema for each insrc/content/config.ts
. - Layout: Contains the base layout for the project, you can add more or customize accordingly.
- Pages: This directory has configured nesting routes that you can see by visiting
/nesting
after running this project , 404 page, index page, you can customize each accordingly and add more pages according to your project need. - Lib: It contains all the utility functions and files.
Follow the guidelines provided by your hosting service to deploy your Astro website. Most platforms support Astro out of the box and only require a build command (npm run build) and a publish directory (dist/).
Contributions are welcome! If you'd like to help improve the Astro Website Template, feel free to submit issues, feature requests, or pull requests.
Distributed under the MIT License. See LICENCE for more information.
-
Icon and designs from Quazire.com
-
Backed by Quazire.com
-
Support my work with a Donation 🔥🚀