|
| 1 | +# 🍥 Fuwari |
| 2 | + |
| 3 | +Template blog statis yang dibangun dengan [Astro](https://astro.build). |
| 4 | + |
| 5 | +[**🖥️ Demo Langsung (Vercel)**](https://fuwari.vercel.app) |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | +🌏 README dalam |
| 10 | +[**中文**](https://github.com/saicaca/fuwari/blob/main/docs/README.zh-CN.md) / |
| 11 | +[**日本語**](https://github.com/saicaca/fuwari/blob/main/docs/README.ja.md) / |
| 12 | +[**한국어**](https://github.com/saicaca/fuwari/blob/main/docs/README.ko.md) / |
| 13 | +[**Español**](https://github.com/saicaca/fuwari/blob/main/docs/README.es.md) / |
| 14 | +[**ไทย**](https://github.com/saicaca/fuwari/blob/main/docs/README.th.md) / |
| 15 | +[**Tiếng Việt**](https://github.com/saicaca/fuwari/blob/main/docs/README.vi.md) / |
| 16 | +**Bahasa Indonesia (ini)** (Disediakan oleh komunitas, mungkin tidak selalu paling mutakhir) |
| 17 | + |
| 18 | +## ✨ Fitur |
| 19 | + |
| 20 | +- [x] Dibangun dengan [Astro](https://astro.build) dan [Tailwind CSS](https://tailwindcss.com) |
| 21 | +- [x] Animasi dan transisi halaman yang halus |
| 22 | +- [x] Mode terang / gelap |
| 23 | +- [x] Warna tema & banner yang bisa dikustomisasi |
| 24 | +- [x] Desain responsif |
| 25 | +- [x] Fitur pencarian dengan [Pagefind](https://pagefind.app/) |
| 26 | +- [x] [Fitur markdown tambahan](#-markdown-sintaks-ekstensi) |
| 27 | +- [x] Daftar isi (Table of Contents) |
| 28 | +- [x] RSS feed |
| 29 | + |
| 30 | +## 🚀 Memulai |
| 31 | + |
| 32 | +1. Buat repositori blog kamu: |
| 33 | + - [Generate repositori baru](https://github.com/saicaca/fuwari/generate) dari template ini atau fork repositori ini. |
| 34 | + - Atau jalankan salah satu perintah berikut: |
| 35 | + ```sh |
| 36 | + # npm |
| 37 | + npm create fuwari@latest. |
| 38 | + |
| 39 | + # yarn |
| 40 | + yarn create fuwari. |
| 41 | + |
| 42 | + # pnpm |
| 43 | + pnpm create fuwari@latest |
| 44 | + |
| 45 | + # bun |
| 46 | + bun create fuwari@latest |
| 47 | + |
| 48 | + # deno |
| 49 | + deno run -A npm:create-fuwari@latest |
| 50 | + ``` |
| 51 | +2. Untuk mengedit blog secara lokal, klon repositori kamu, jalankan `pnpm install` untuk instalasi dependensi. |
| 52 | + - Install [pnpm](https://pnpm.io) `npm install -g pnpm` jika belum punya. |
| 53 | +3. Edit file konfigurasi `src/config.ts` untuk menyesuaikan blog. |
| 54 | +4. Jalankan `pnpm new-post <nama-file>` untuk membuat postingan baru dan edit di `src/content/posts/`. |
| 55 | +5. Deploy blog ke Vercel, Netlify, GitHub Pages, dll. sesuai [panduan](https://docs.astro.build/en/guides/deploy/). Jangan lupa edit konfigurasi situs di `astro.config.mjs` sebelum deploy. |
| 56 | + |
| 57 | +## 📝 Frontmatter Postingan |
| 58 | + |
| 59 | +```yaml |
| 60 | +--- |
| 61 | +title: Judul Postingan Pertama Saya |
| 62 | +published: 2023-09-09 |
| 63 | +description: Ini adalah postingan pertama blog Astro saya. |
| 64 | +image: ./cover.jpg |
| 65 | +tags: [Foo, Bar] |
| 66 | +category: Front-end |
| 67 | +draft: false |
| 68 | +lang: id # Isi hanya jika bahasa postingan berbeda dari bahasa default di `config.ts` |
| 69 | +--- |
| 70 | +``` |
| 71 | + |
| 72 | +## 🧩 Markdown Sintaks Ekstensi |
| 73 | + |
| 74 | +Selain dukungan default Astro untuk [GitHub Flavored Markdown](https://github.github.com/gfm/), terdapat beberapa fitur tambahan: |
| 75 | + |
| 76 | +- Admonisi ([Pratinjau & Cara Pakai](https://fuwari.vercel.app/posts/markdown-extended/#admonitions)) |
| 77 | +- Kartu repositori GitHub ([Pratinjau & Cara Pakai](https://fuwari.vercel.app/posts/markdown-extended/#github-repository-cards)) |
| 78 | +- Kode blok ekspresif lewat Expressive Code ([Pratinjau](https://fuwari.vercel.app/posts/expressive-code/) / [Dokumentasi](https://expressive-code.com/)) |
| 79 | + |
| 80 | +## ⚡ Perintah |
| 81 | + |
| 82 | +Semua perintah dijalankan dari root proyek, via terminal: |
| 83 | + |
| 84 | +| Perintah | Aksi | |
| 85 | +|:-----------------------------|:----------------------------------------------------------| |
| 86 | +| `pnpm install` | Instalasi dependensi | |
| 87 | +| `pnpm dev` | Menjalankan server dev lokal di `localhost:4321` | |
| 88 | +| `pnpm build` | Build untuk produksi ke folder `./dist/` | |
| 89 | +| `pnpm preview` | Pratinjau hasil build sebelum deploy | |
| 90 | +| `pnpm check` | Cek error atau masalah di kode | |
| 91 | +| `pnpm format` | Format kode dengan Biome | |
| 92 | +| `pnpm new-post <nama-file>` | Membuat postingan baru | |
| 93 | +| `pnpm astro ...` | Jalankan perintah CLI seperti `astro add`, `astro check` | |
| 94 | +| `pnpm astro --help` | Bantuan menggunakan Astro CLI | |
| 95 | + |
| 96 | +## ✏️ Kontribusi |
| 97 | + |
| 98 | +Lihat [Panduan Kontribusi](https://github.com/saicaca/fuwari/blob/main/CONTRIBUTING.md) untuk detail tentang cara berkontribusi ke proyek ini. |
| 99 | + |
| 100 | +## 📄 Lisensi |
| 101 | + |
| 102 | +Proyek ini dilisensikan di bawah MIT License. |
| 103 | + |
| 104 | +--- |
| 105 | + |
| 106 | +> Dokumentasi ini tersedia dalam Bahasa Indonesia. Untuk bahasa lain, lihat README di direktori docs. |
0 commit comments