A static blog template built with Astro for DevRhylme Foundation.
README version:
2024-09-10
- Built with Astro and Tailwind CSS
- Smooth animations and page transitions
- Light / dark mode
- Customizable theme colors & banner
- Responsive design
- Comments
- Search
- TOC (Table of Contents)
- Generate a new repository from this template or fork this repository.
- To edit your blog locally, clone your repository, run
npm install
ANDnpm install sharp
to install dependencies.- Install Node.js if you haven’t already.
- Edit the config file
src/config.ts
to customize your blog. - Run
npm run new-post <filename>
to create a new post and edit it insrc/content/posts/
.
---
title: My First Blog Post
published: 2024-10-13
description: This is the first post of my new Astro blog for DevRhylme.
image: ./cover.jpg
tags: [AI, Web3, Python]
category: DevRhylme
draft: false
lang: en # Set only if the post's language differs from the site's language in `config.ts`
---
All commands are run from the root of the project, from a terminal:
Command | Action |
---|---|
npm install AND pnpm add sharp |
Installs dependencies |
npm dev |
Starts local dev server at localhost:4321 |
npm build |
Build your production site to ./dist/ |
npm preview |
Preview your build locally, before deploying |
npm new-post <filename> |
Create a new post |
npm astro ... |
Run CLI commands like astro add , astro check |
npm astro --help |
Get help using the Astro CLI |
Don't Forget to Give a ⭐