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.
- 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.
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.tsAll 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 can be read in two formats_ markdown & blog post.
- Configuration - markdown | blog post
- Add Posts - markdown | blog post
- Customize Color Schemes - markdown | blog post
- Predefined Color Schemes - markdown | blog post
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
μ΄ μ μ₯μλ₯Ό λ°μ λ€ νλ‘μ νΈ λ£¨νΈμμ μ€νν©λλ€. 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μμ νμΈν μ μμ΅λλ€.
μμ‘΄μ±μ΄ μ€μΉλ μνλΌλ©΄ νλ‘μ νΈμ Astro μ€ν νμΌμ μ§μ μ¬μ©ν μλ μμ΅λλ€.
.\node_modules\.bin\astro.cmd dev --host 127.0.0.1 --port 4321 --backgroundAstro μ€ν μ€ μ¬μ©μ μ€μ ν΄λμ astro/Config μμ± κΆν μ€λ₯κ° λ°μνλ©΄, νμ¬ PowerShell μΈμ
μμ ν
λ λ©νΈλ¦¬λ₯Ό λκ³ λ€μ μ€νν©λλ€.
$env:ASTRO_TELEMETRY_DISABLED = "1"
.\node_modules\.bin\astro.cmd dev --host 127.0.0.1 --port 4321 --backgroundYou 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.
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 |
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.
Licensed under the MIT License, Copyright Β© 2026
Made with π€ by Sat Naing π¨π»βπ» and contributors.
