Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gauravtiwari/new-astro-blog
Demo blog in Astro
https://github.com/gauravtiwari/new-astro-blog
Last synced: 16 days ago
JSON representation
Demo blog in Astro
- Host: GitHub
- URL: https://github.com/gauravtiwari/new-astro-blog
- Owner: gauravtiwari
- License: mit
- Created: 2021-09-13T10:03:12.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-10-08T11:51:16.000Z (over 3 years ago)
- Last Synced: 2024-12-05T13:40:13.718Z (about 1 month ago)
- Language: Astro
- Homepage:
- Size: 1.8 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Astro Starter Kit: Blog
```
npm init astro -- --template blog
```> 🧑🚀 **Seasoned astronaut?** Delete this file. Have fun!
Features:
- ✅ SEO-friendly setup with canonical URLs and OpenGraph data
- ✅ Full Markdown support
- ✅ RSS 2.0 generation
- ✅ Sitemap.xml generation## 🚀 Project Structure
Inside of your Astro project, you'll see the following folders and files:
```
/
├── public/
│ ├── robots.txt
│ └── favicon.ico
├── src/
│ ├── components/
│ │ └── Tour.astro
│ └── pages/
│ └── index.astro
└── package.json
```Astro looks for `.astro` or `.md` files in the `src/pages/` directory. Each page is exposed as a route based on its file name.
There's nothing special about `src/components/`, but that's where we like to put any Astro/React/Vue/Svelte/Preact components.
Any static assets, like images, can be placed in the `public/` directory.
## 🧞 Commands
All commands are run from the root of the project, from a terminal:
| Command | Action |
|:----------------|:--------------------------------------------|
| `npm install` | Installs dependencies |
| `npm run dev` | Starts local dev server at `localhost:3000` |
| `npm run build` | Build your production site to `./dist/` |## 👀 Want to learn more?
Feel free to check [our documentation](https://github.com/snowpackjs/astro) or jump into our [Discord server](https://astro.build/chat).