Skip to content

About

Resources

Code of conduct

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

33 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

AstroPaper πŸ“„

AstroPaper Figma Typescript GitHub Conventional Commits Commitizen friendly

AstroPaper is a minimal, responsive, accessible and SEO-friendly Astro blog theme. This theme is designed and crafted based on my personal blog.

Read the blog posts or check the README Documentation Section for more info.

πŸ”₯ Features

  • type-safe markdown
  • super fast performance
  • accessible (Keyboard/VoiceOver)
  • responsive (mobile ~ desktops)
  • SEO-friendly
  • light & dark mode
  • static search (Pagefind)
  • draft posts & pagination
  • sitemap & rss feed
  • MDX support
  • collapsible table of contents
  • followed best practices
  • highly customizable
  • dynamic OG image generation for blog posts (Blog Post)
  • i18n ready

Note: I've tested screen-reader accessibility of AstroPaper using VoiceOver on Mac and TalkBack on Android. I couldn't test all other screen-readers out there. However, accessibility enhancements in AstroPaper should be working fine on others as well.

βœ… Lighthouse Score

AstroPaper Lighthouse Score

πŸš€ Project Structure

Inside of AstroPaper, you'll see the following folders and files:

/
β”œβ”€β”€ public/
β”‚   β”œβ”€β”€ pagefind/          # auto-generated on build
β”‚   β”œβ”€β”€ favicon.svg
β”‚   └── default-og.jpg
β”œβ”€β”€ contents/
β”‚   β”œβ”€β”€ pages/
β”‚   β”‚   └── about.md
β”‚   └── posts/
β”‚       └── some-blog-posts.md
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ assets/
β”‚   β”‚   β”œβ”€β”€ icons/
β”‚   β”‚   └── images/
β”‚   β”œβ”€β”€ components/
β”‚   β”œβ”€β”€ i18n/
β”‚   β”œβ”€β”€ layouts/
β”‚   β”œβ”€β”€ pages/
β”‚   β”œβ”€β”€ scripts/
β”‚   β”œβ”€β”€ styles/
β”‚   β”œβ”€β”€ types/
β”‚   β”œβ”€β”€ utils/
β”‚   β”œβ”€β”€ config.ts
β”‚   └── content.config.ts
β”œβ”€β”€ astro-paper.config.ts  # user-defined configurations
└── astro.config.ts

All blog posts are stored in the contents/posts/ directory. You can organise posts into subdirectories β€” the subdirectory name becomes part of the post URL.

πŸ“– Documentation

Documentation can be read in two formats_ markdown & blog post.

πŸ’» Tech Stack

Main Framework - Astro
Type Checking - TypeScript
Styling - TailwindCSS
UI/UX - Figma Design File
Static Search - Pagefind
Icons - Tablers
Code Formatting - Prettier
Deployment - Cloudflare Pages
Linting - ESLint
Dynamic OG images - Satori + Sharp + Astro Fonts

πŸ‘¨πŸ»β€πŸ’» Running Locally

이 μ €μž₯μ†Œλ₯Ό 받은 λ’€ ν”„λ‘œμ νŠΈ λ£¨νŠΈμ—μ„œ μ‹€ν–‰ν•©λ‹ˆλ‹€. Node.jsλŠ” 22.12.0 이상이 ν•„μš”ν•˜λ©°, GitHub Actions와 같은 ν™˜κ²½μ„ μ“°λ €λ©΄ Node.js 24와 pnpm 11.3.0을 μ‚¬μš©ν•©λ‹ˆλ‹€.

Corepack이 μ„€μΉ˜λœ ν™˜κ²½μ—μ„œλŠ” μ•„λž˜ λͺ…λ ΉμœΌλ‘œ pnpm을 λ‚΄λ €λ°›κ³  μ˜μ‘΄μ„±μ„ μ„€μΉ˜ν•  수 μžˆμŠ΅λ‹ˆλ‹€. 졜초 μ‹€ν–‰μ—λŠ” npm λ ˆμ§€μŠ€νŠΈλ¦¬μ— μ ‘κ·Όν•  수 μžˆμ–΄μ•Ό ν•©λ‹ˆλ‹€.

corepack pnpm@11.3.0 --version
corepack pnpm@11.3.0 install --frozen-lockfile
corepack pnpm@11.3.0 dev --host 127.0.0.1 --port 4321

λΈŒλΌμš°μ €μ—μ„œ 둜컬 λΈ”λ‘œκ·Έλ₯Ό μ—½λ‹ˆλ‹€. μ„œλ²„κ°€ 좜λ ₯ν•˜λŠ” μ‹€μ œ μ£Όμ†Œμ™€ 포트λ₯Ό ν™•μΈν•˜μ„Έμš”. 글을 μ €μž₯ν•˜λ©΄ 개발 μ„œλ²„κ°€ λ³€κ²½ 사항을 λ°˜μ˜ν•©λ‹ˆλ‹€.

pnpm 11.3.0이 이미 μ„€μΉ˜λ˜μ–΄ μžˆλ‹€λ©΄ corepack pnpm@11.3.0 λŒ€μ‹  pnpm을 μ‚¬μš©ν•  수 μžˆμŠ΅λ‹ˆλ‹€.

λ°±κ·ΈλΌμš΄λ“œ μ‹€ν–‰κ³Ό μ’…λ£Œ

ν˜„μž¬ Astro 버전은 개발 μ„œλ²„μ˜ λ°±κ·ΈλΌμš΄λ“œ 싀행을 μ§€μ›ν•©λ‹ˆλ‹€. 터미널을 계속 μ μœ ν•˜μ§€ μ•Šκ³  μ‹€ν–‰ν•˜λ €λ©΄ --backgroundλ₯Ό λΆ™μž…λ‹ˆλ‹€. μƒνƒœ 확인과 μ’…λ£Œ λͺ…령도 같은 ν”„λ‘œμ νŠΈ λ£¨νŠΈμ—μ„œ μ‹€ν–‰ν•©λ‹ˆλ‹€.

corepack pnpm@11.3.0 dev --host 127.0.0.1 --port 4321 --background
corepack pnpm@11.3.0 astro dev status
corepack pnpm@11.3.0 astro dev logs
corepack pnpm@11.3.0 astro dev stop

κΈ€ μ£Όμ†Œμ™€ μ΄ˆμ•ˆ

글은 contents/posts/에 μž‘μ„±ν•˜λ©°, ν•˜μœ„ 폴더도 URL에 ν¬ν•¨λ©λ‹ˆλ‹€. 예λ₯Ό λ“€μ–΄ contents/posts/bootda/vibe-coding-chrome-extension.md의 μ£Όμ†ŒλŠ” /posts/bootda/vibe-coding-chrome-extension/μž…λ‹ˆλ‹€.

ν˜„μž¬ μ„€μ •μ—μ„œ draft: true인 글은 개발 μ„œλ²„μ™€ 배포 λΉŒλ“œ λͺ¨λ‘μ—μ„œ μ œμ™Έλ˜λ―€λ‘œ, ν•΄λ‹Ή μ£Όμ†Œλ‘œ 접속해도 글이 ν‘œμ‹œλ˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€. pnpm previewλŠ” λΉŒλ“œ κ²°κ³Όλ₯Ό ν™•μΈν•˜λŠ” λͺ…령이며 μ΄ˆμ•ˆ ν‘œμ‹œ κΈ°λŠ₯을 μ œκ³΅ν•˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€. 이 λ™μž‘μ€ src/utils/postFilter.tsμ—μ„œ 확인할 수 μžˆμŠ΅λ‹ˆλ‹€.

Windowsμ—μ„œ 싀행이 λ§‰νž λ•Œ

μ˜μ‘΄μ„±μ΄ μ„€μΉ˜λœ μƒνƒœλΌλ©΄ ν”„λ‘œμ νŠΈμ˜ Astro μ‹€ν–‰ νŒŒμΌμ„ 직접 μ‚¬μš©ν•  μˆ˜λ„ μžˆμŠ΅λ‹ˆλ‹€.

.\node_modules\.bin\astro.cmd dev --host 127.0.0.1 --port 4321 --background

Astro μ‹€ν–‰ 쀑 μ‚¬μš©μž μ„€μ • ν΄λ”μ˜ astro/Config 생성 κΆŒν•œ 였λ₯˜κ°€ λ°œμƒν•˜λ©΄, ν˜„μž¬ PowerShell μ„Έμ…˜μ—μ„œ ν…”λ ˆλ©”νŠΈλ¦¬λ₯Ό 끄고 λ‹€μ‹œ μ‹€ν–‰ν•©λ‹ˆλ‹€.

$env:ASTRO_TELEMETRY_DISABLED = "1"
.\node_modules\.bin\astro.cmd dev --host 127.0.0.1 --port 4321 --background

Google Site Verification (optional)

You can add your Google Site Verification HTML tag by setting site.googleVerification in astro-paper.config.ts:

export default defineAstroPaperConfig({
  site: {
    // ...
    googleVerification: "your-google-site-verification-value",
  },
  // ...
});

See this discussion for adding AstroPaper to the Google Search Console.

🧞 Commands

All commands are run from the root of the project, from a terminal:

Command Action
pnpm install Installs dependencies
pnpm dev Starts local dev server at localhost:4321
pnpm build Type-checks, builds the site, runs Pagefind indexing, and copies the index to public/pagefind/
pnpm preview Preview your build locally, before deploying
pnpm sync Generates TypeScript types for all Astro modules. Learn more.
pnpm astro ... Run CLI commands like astro add, astro check

✨ Feedback & Suggestions

If you have any suggestions/feedback, you can contact me via my email. Alternatively, feel free to open an issue if you find bugs or want to request new features.

πŸ“œ License

Licensed under the MIT License, Copyright Β© 2026


Made with 🀍 by Sat Naing πŸ‘¨πŸ»β€πŸ’» and contributors.

About

Resources

Code of conduct

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

Generated from satnaing/astro-paper