Skip to content

Commit aa891ba

Browse files
committed
Initial blog setup with Astro, Tailwind, and Ghost import
0 parents  commit aa891ba

54 files changed

Lines changed: 8119 additions & 0 deletions

Some content is hidden

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

.github/workflows/deploy.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: [main]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
concurrency:
14+
group: "pages"
15+
cancel-in-progress: false
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v4
23+
24+
- name: Setup Node
25+
uses: actions/setup-node@v4
26+
with:
27+
node-version: "20"
28+
cache: npm
29+
30+
- name: Install dependencies
31+
run: npm ci
32+
33+
- name: Build Astro site
34+
run: npm run build
35+
36+
- name: Upload artifact
37+
uses: actions/upload-pages-artifact@v3
38+
with:
39+
path: ./dist
40+
41+
deploy:
42+
environment:
43+
name: github-pages
44+
url: ${{ steps.deployment.outputs.page_url }}
45+
runs-on: ubuntu-latest
46+
needs: build
47+
steps:
48+
- name: Deploy to GitHub Pages
49+
id: deployment
50+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# build output
2+
dist/
3+
# generated types
4+
.astro/
5+
6+
# dependencies
7+
node_modules/
8+
9+
# logs
10+
npm-debug.log*
11+
yarn-debug.log*
12+
yarn-error.log*
13+
pnpm-debug.log*
14+
15+
16+
# environment variables
17+
.env
18+
.env.production
19+
20+
# macOS-specific files
21+
.DS_Store
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: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# Astro Starter Kit: Blog
2+
3+
```sh
4+
npm create astro@latest -- --template blog
5+
```
6+
7+
> 🧑‍🚀 **Seasoned astronaut?** Delete this file. Have fun!
8+
9+
Features:
10+
11+
- ✅ Minimal styling (make it your own!)
12+
- ✅ 100/100 Lighthouse performance
13+
- ✅ SEO-friendly with canonical URLs and OpenGraph data
14+
- ✅ Sitemap support
15+
- ✅ RSS Feed support
16+
- ✅ Markdown & MDX support
17+
18+
## 🚀 Project Structure
19+
20+
Inside of your Astro project, you'll see the following folders and files:
21+
22+
```text
23+
├── public/
24+
├── src/
25+
│   ├── components/
26+
│   ├── content/
27+
│   ├── layouts/
28+
│   └── pages/
29+
├── astro.config.mjs
30+
├── README.md
31+
├── package.json
32+
└── tsconfig.json
33+
```
34+
35+
Astro looks for `.astro` or `.md` files in the `src/pages/` directory. Each page is exposed as a route based on its file name.
36+
37+
There's nothing special about `src/components/`, but that's where we like to put any Astro/React/Vue/Svelte/Preact components.
38+
39+
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.
40+
41+
Any static assets, like images, can be placed in the `public/` directory.
42+
43+
## 🧞 Commands
44+
45+
All commands are run from the root of the project, from a terminal:
46+
47+
| Command | Action |
48+
| :------------------------ | :----------------------------------------------- |
49+
| `npm install` | Installs dependencies |
50+
| `npm run dev` | Starts local dev server at `localhost:4321` |
51+
| `npm run build` | Build your production site to `./dist/` |
52+
| `npm run preview` | Preview your build locally, before deploying |
53+
| `npm run astro ...` | Run CLI commands like `astro add`, `astro check` |
54+
| `npm run astro -- --help` | Get help using the Astro CLI |
55+
56+
## 👀 Want to learn more?
57+
58+
Check out [our documentation](https://docs.astro.build) or jump into our [Discord server](https://astro.build/chat).
59+
60+
## Credit
61+
62+
This theme is based off of the lovely [Bear Blog](https://github.com/HermanMartinus/bearblog/).

astro.config.mjs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// @ts-check
2+
3+
import mdx from '@astrojs/mdx';
4+
import sitemap from '@astrojs/sitemap';
5+
import { defineConfig } from 'astro/config';
6+
7+
import tailwindcss from '@tailwindcss/vite';
8+
9+
// https://astro.build/config
10+
export default defineConfig({
11+
site: 'https://amogram.github.io',
12+
integrations: [mdx(), sitemap()],
13+
14+
vite: {
15+
plugins: [tailwindcss()],
16+
},
17+
});

0 commit comments

Comments
 (0)