Skip to content

Commit e5b2a05

Browse files
committed
feat: use astro
1 parent 85ec14f commit e5b2a05

45 files changed

Lines changed: 4266 additions & 193 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
1-
# Logs
2-
logs
3-
*.log
1+
# build output
2+
dist/
3+
# generated types
4+
.astro/
5+
6+
# dependencies
7+
node_modules/
8+
9+
# logs
410
npm-debug.log*
511
yarn-debug.log*
612
yarn-error.log*
713
pnpm-debug.log*
8-
lerna-debug.log*
914

10-
node_modules
11-
dist
12-
dist-ssr
13-
*.local
1415

15-
# Editor directories and files
16-
.vscode/*
17-
!.vscode/extensions.json
18-
.idea
16+
# environment variables
17+
.env
18+
.env.production
19+
20+
# macOS-specific files
1921
.DS_Store
20-
*.suo
21-
*.ntvs*
22-
*.njsproj
23-
*.sln
24-
*.sw?
22+
23+
# jetbrains setting folder
24+
.idea/

.vscode/extensions.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"recommendations": ["astro-build.astro-vscode", "unifiedjs.vscode-mdx"],
3+
"unwantedRecommendations": []
4+
}

.vscode/launch.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"command": "./node_modules/.bin/astro dev",
6+
"name": "Development server",
7+
"request": "launch",
8+
"type": "node-terminal"
9+
}
10+
]
11+
}

README.md

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
# Astro Starter Kit: Blog
2+
3+
```sh
4+
yarn create astro@latest -- --template blog
5+
```
6+
7+
[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/withastro/astro/tree/latest/examples/blog)
8+
[![Open with CodeSandbox](https://assets.codesandbox.io/github/button-edit-lime.svg)](https://codesandbox.io/p/sandbox/github/withastro/astro/tree/latest/examples/blog)
9+
[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/withastro/astro?devcontainer_path=.devcontainer/blog/devcontainer.json)
10+
11+
> 🧑‍🚀 **Seasoned astronaut?** Delete this file. Have fun!
12+
13+
![blog](https://github.com/withastro/astro/assets/2244813/ff10799f-a816-4703-b967-c78997e8323d)
14+
15+
Features:
16+
17+
- ✅ Minimal styling (make it your own!)
18+
- ✅ 100/100 Lighthouse performance
19+
- ✅ SEO-friendly with canonical URLs and OpenGraph data
20+
- ✅ Sitemap support
21+
- ✅ RSS Feed support
22+
- ✅ Markdown & MDX support
23+
24+
## 🚀 Project Structure
25+
26+
Inside of your Astro project, you'll see the following folders and files:
27+
28+
```text
29+
├── public/
30+
├── src/
31+
│   ├── components/
32+
│   ├── content/
33+
│   ├── layouts/
34+
│   └── pages/
35+
├── astro.config.mjs
36+
├── README.md
37+
├── package.json
38+
└── tsconfig.json
39+
```
40+
41+
Astro looks for `.astro` or `.md` files in the `src/pages/` directory. Each page is exposed as a route based on its file name.
42+
43+
There's nothing special about `src/components/`, but that's where we like to put any Astro/React/Vue/Svelte/Preact components.
44+
45+
The `src/content/` directory contains "collections" of related Markdown and MDX documents. Use `getCollection()` to retrieve posts from `src/content/blog/`, and type-check your frontmatter using an optional schema. See [Astro's Content Collections docs](https://docs.astro.build/en/guides/content-collections/) to learn more.
46+
47+
Any static assets, like images, can be placed in the `public/` directory.
48+
49+
## 🧞 Commands
50+
51+
All commands are run from the root of the project, from a terminal:
52+
53+
| Command | Action |
54+
| :------------------------ | :----------------------------------------------- |
55+
| `yarn install` | Installs dependencies |
56+
| `yarn dev` | Starts local dev server at `localhost:4321` |
57+
| `yarn build` | Build your production site to `./dist/` |
58+
| `yarn preview` | Preview your build locally, before deploying |
59+
| `yarn astro ...` | Run CLI commands like `astro add`, `astro check` |
60+
| `yarn astro -- --help` | Get help using the Astro CLI |
61+
62+
## 👀 Want to learn more?
63+
64+
Check out [our documentation](https://docs.astro.build) or jump into our [Discord server](https://astro.build/chat).
65+
66+
## Credit
67+
68+
This theme is based off of the lovely [Bear Blog](https://github.com/HermanMartinus/bearblog/).

astro.config.mjs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// @ts-check
2+
import { defineConfig } from 'astro/config';
3+
import mdx from '@astrojs/mdx';
4+
import sitemap from '@astrojs/sitemap';
5+
6+
// https://astro.build/config
7+
export default defineConfig({
8+
site: 'https://example.com',
9+
integrations: [mdx(), sitemap()],
10+
});

index.html

Lines changed: 0 additions & 13 deletions
This file was deleted.

package.json

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
{
2-
"name": "coutodev.github.io",
3-
"private": true,
4-
"version": "0.0.0",
2+
"name": "",
53
"type": "module",
4+
"version": "0.0.1",
65
"scripts": {
7-
"dev": "vite",
8-
"build": "tsc && vite build",
9-
"preview": "vite preview"
6+
"dev": "astro dev",
7+
"build": "astro build",
8+
"preview": "astro preview",
9+
"astro": "astro"
1010
},
11-
"devDependencies": {
12-
"typescript": "~5.7.2",
13-
"vite": "^6.3.1"
11+
"dependencies": {
12+
"@astrojs/mdx": "^4.2.4",
13+
"@astrojs/rss": "^4.0.11",
14+
"@astrojs/sitemap": "^3.3.0",
15+
"astro": "^5.7.4"
1416
}
15-
}
17+
}

public/blog-placeholder-1.jpg

31.3 KB
Loading

public/blog-placeholder-2.jpg

32.4 KB
Loading

public/blog-placeholder-3.jpg

28 KB
Loading

0 commit comments

Comments
 (0)