2025/8/7
@@ -1,85 +0,0 @@
|
|||||||
# 🍥Fuwari
|
|
||||||
|
|
||||||
Un tema estático para blogs construido con [Astro](https://astro.build).
|
|
||||||
|
|
||||||
[**🖥️ Demostración en Vivo (Vercel)**](https://fuwari.vercel.app)
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
## ✨ Características
|
|
||||||
|
|
||||||
- [x] Construido con [Astro](https://astro.build) y [Tailwind CSS](https://tailwindcss.com)
|
|
||||||
- [x] Animaciones suaves y transiciones de página
|
|
||||||
- [x] Modo claro / oscuro
|
|
||||||
- [x] Colores del tema y banner personalizables
|
|
||||||
- [x] Diseño responsivo
|
|
||||||
- [ ] Comentarios
|
|
||||||
- [x] Buscador
|
|
||||||
- [x] TOC (Tabla de Contenidos)
|
|
||||||
|
|
||||||
## 👀 requiere
|
|
||||||
|
|
||||||
- Node.js <= 22
|
|
||||||
- pnpm <= 9
|
|
||||||
|
|
||||||
## 🚀 Cómo Usar 1
|
|
||||||
|
|
||||||
Inicializa el proyecto localmente usando [create-fuwari](https://github.com/L4Ph/create-fuwari).
|
|
||||||
|
|
||||||
```sh
|
|
||||||
# npm
|
|
||||||
npm create fuwari@latest.
|
|
||||||
|
|
||||||
# yarn
|
|
||||||
yarn create fuwari.
|
|
||||||
|
|
||||||
# pnpm
|
|
||||||
pnpm create fuwari@latest
|
|
||||||
|
|
||||||
# bun
|
|
||||||
bun create fuwari@latest
|
|
||||||
|
|
||||||
# deno
|
|
||||||
deno run -A npm:create-fuwari@latest
|
|
||||||
```
|
|
||||||
|
|
||||||
1. Edita el archivo de configuración `src/config.ts` para personalizar tu blog.
|
|
||||||
2. Ejecuta `pnpm new-post <nombre-de-archivo>` para crear una nueva entrada y edítala en `src/content/posts/`.
|
|
||||||
3. Despliega tu blog en Vercel, Netlify, GitHub Pages, etc., siguiendo [las guías](https://docs.astro.build/en/guides/deploy/). Necesitas editar la configuración del sitio en `astro.config.mjs` antes del despliegue.
|
|
||||||
|
|
||||||
## 🚀 Cómo Usar 2
|
|
||||||
|
|
||||||
1. [Genera un nuevo repositorio](https://github.com/saicaca/fuwari/generate) desde esta plantilla o haz un fork de este repositorio.
|
|
||||||
2. Para editar tu blog localmente, clona tu repositorio, ejecuta `pnpm install` y `pnpm add sharp` para instalar las dependencias.
|
|
||||||
- Instala [pnpm](https://pnpm.io) `npm install -g pnpm` si aún no lo tienes.
|
|
||||||
3. Edita el archivo de configuración `src/config.ts` para personalizar tu blog.
|
|
||||||
4. Ejecuta `pnpm new-post <nombre-de-archivo>` para crear una nueva entrada y edítala en `src/content/posts/`.
|
|
||||||
5. Despliega tu blog en Vercel, Netlify, GitHub Pages, etc., siguiendo [las guías](https://docs.astro.build/en/guides/deploy/). Necesitas editar la configuración del sitio en `astro.config.mjs` antes del despliegue.
|
|
||||||
|
|
||||||
## ⚙️ Cabecera de las Entradas
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
---
|
|
||||||
title: Mi Primer Post en el Blog
|
|
||||||
published: 2023-09-09
|
|
||||||
description: Esta es la primera entrada de mi nuevo blog con Astro.
|
|
||||||
image: /images/cover.jpg
|
|
||||||
tags: [Foo, Bar]
|
|
||||||
category: Front-end
|
|
||||||
draft: false
|
|
||||||
---
|
|
||||||
```
|
|
||||||
|
|
||||||
## 🧞 Comandos
|
|
||||||
|
|
||||||
Todos los comandos se ejecutan desde la raíz del proyecto, desde una terminal:
|
|
||||||
|
|
||||||
| Comando | Acción |
|
|
||||||
|:------------------------------------|:--------------------------------------------------|
|
|
||||||
| `pnpm install` y `pnpm add sharp` | Instala las dependencias |
|
|
||||||
| `pnpm dev` | Inicia el servidor de desarrollo local en `localhost:4321` |
|
|
||||||
| `pnpm build` | Compila tu web para producción en `./dist/` |
|
|
||||||
| `pnpm preview` | Previsualiza la web localmente, antes del despliegue |
|
|
||||||
| `pnpm new-post <nombre-de-archivo>` | Crea una nueva entrada |
|
|
||||||
| `pnpm astro ...` | Ejecuta comandos CLI como `astro add`, `astro check` |
|
|
||||||
| `pnpm astro --help` | Obtén ayuda para usar el CLI de Astro |
|
|
||||||
@@ -1,106 +0,0 @@
|
|||||||
# 🍥 Fuwari
|
|
||||||
|
|
||||||
Template blog statis yang dibangun dengan [Astro](https://astro.build).
|
|
||||||
|
|
||||||
[**🖥️ Demo Langsung (Vercel)**](https://fuwari.vercel.app)
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
🌏 README dalam
|
|
||||||
[**中文**](https://github.com/saicaca/fuwari/blob/main/docs/README.zh-CN.md) /
|
|
||||||
[**日本語**](https://github.com/saicaca/fuwari/blob/main/docs/README.ja.md) /
|
|
||||||
[**한국어**](https://github.com/saicaca/fuwari/blob/main/docs/README.ko.md) /
|
|
||||||
[**Español**](https://github.com/saicaca/fuwari/blob/main/docs/README.es.md) /
|
|
||||||
[**ไทย**](https://github.com/saicaca/fuwari/blob/main/docs/README.th.md) /
|
|
||||||
[**Tiếng Việt**](https://github.com/saicaca/fuwari/blob/main/docs/README.vi.md) /
|
|
||||||
**Bahasa Indonesia (ini)** (Disediakan oleh komunitas, mungkin tidak selalu paling mutakhir)
|
|
||||||
|
|
||||||
## ✨ Fitur
|
|
||||||
|
|
||||||
- [x] Dibangun dengan [Astro](https://astro.build) dan [Tailwind CSS](https://tailwindcss.com)
|
|
||||||
- [x] Animasi dan transisi halaman yang halus
|
|
||||||
- [x] Mode terang / gelap
|
|
||||||
- [x] Warna tema & banner yang bisa dikustomisasi
|
|
||||||
- [x] Desain responsif
|
|
||||||
- [x] Fitur pencarian dengan [Pagefind](https://pagefind.app/)
|
|
||||||
- [x] [Fitur markdown tambahan](#-markdown-sintaks-ekstensi)
|
|
||||||
- [x] Daftar isi (Table of Contents)
|
|
||||||
- [x] RSS feed
|
|
||||||
|
|
||||||
## 🚀 Memulai
|
|
||||||
|
|
||||||
1. Buat repositori blog kamu:
|
|
||||||
- [Generate repositori baru](https://github.com/saicaca/fuwari/generate) dari template ini atau fork repositori ini.
|
|
||||||
- Atau jalankan salah satu perintah berikut:
|
|
||||||
```sh
|
|
||||||
# npm
|
|
||||||
npm create fuwari@latest.
|
|
||||||
|
|
||||||
# yarn
|
|
||||||
yarn create fuwari.
|
|
||||||
|
|
||||||
# pnpm
|
|
||||||
pnpm create fuwari@latest
|
|
||||||
|
|
||||||
# bun
|
|
||||||
bun create fuwari@latest
|
|
||||||
|
|
||||||
# deno
|
|
||||||
deno run -A npm:create-fuwari@latest
|
|
||||||
```
|
|
||||||
2. Untuk mengedit blog secara lokal, klon repositori kamu, jalankan `pnpm install` untuk instalasi dependensi.
|
|
||||||
- Install [pnpm](https://pnpm.io) `npm install -g pnpm` jika belum punya.
|
|
||||||
3. Edit file konfigurasi `src/config.ts` untuk menyesuaikan blog.
|
|
||||||
4. Jalankan `pnpm new-post <nama-file>` untuk membuat postingan baru dan edit di `src/content/posts/`.
|
|
||||||
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.
|
|
||||||
|
|
||||||
## 📝 Frontmatter Postingan
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
---
|
|
||||||
title: Judul Postingan Pertama Saya
|
|
||||||
published: 2023-09-09
|
|
||||||
description: Ini adalah postingan pertama blog Astro saya.
|
|
||||||
image: ./cover.jpg
|
|
||||||
tags: [Foo, Bar]
|
|
||||||
category: Front-end
|
|
||||||
draft: false
|
|
||||||
lang: id # Isi hanya jika bahasa postingan berbeda dari bahasa default di `config.ts`
|
|
||||||
---
|
|
||||||
```
|
|
||||||
|
|
||||||
## 🧩 Markdown Sintaks Ekstensi
|
|
||||||
|
|
||||||
Selain dukungan default Astro untuk [GitHub Flavored Markdown](https://github.github.com/gfm/), terdapat beberapa fitur tambahan:
|
|
||||||
|
|
||||||
- Admonisi ([Pratinjau & Cara Pakai](https://fuwari.vercel.app/posts/markdown-extended/#admonitions))
|
|
||||||
- Kartu repositori GitHub ([Pratinjau & Cara Pakai](https://fuwari.vercel.app/posts/markdown-extended/#github-repository-cards))
|
|
||||||
- Kode blok ekspresif lewat Expressive Code ([Pratinjau](https://fuwari.vercel.app/posts/expressive-code/) / [Dokumentasi](https://expressive-code.com/))
|
|
||||||
|
|
||||||
## ⚡ Perintah
|
|
||||||
|
|
||||||
Semua perintah dijalankan dari root proyek, via terminal:
|
|
||||||
|
|
||||||
| Perintah | Aksi |
|
|
||||||
|:-----------------------------|:----------------------------------------------------------|
|
|
||||||
| `pnpm install` | Instalasi dependensi |
|
|
||||||
| `pnpm dev` | Menjalankan server dev lokal di `localhost:4321` |
|
|
||||||
| `pnpm build` | Build untuk produksi ke folder `./dist/` |
|
|
||||||
| `pnpm preview` | Pratinjau hasil build sebelum deploy |
|
|
||||||
| `pnpm check` | Cek error atau masalah di kode |
|
|
||||||
| `pnpm format` | Format kode dengan Biome |
|
|
||||||
| `pnpm new-post <nama-file>` | Membuat postingan baru |
|
|
||||||
| `pnpm astro ...` | Jalankan perintah CLI seperti `astro add`, `astro check` |
|
|
||||||
| `pnpm astro --help` | Bantuan menggunakan Astro CLI |
|
|
||||||
|
|
||||||
## ✏️ Kontribusi
|
|
||||||
|
|
||||||
Lihat [Panduan Kontribusi](https://github.com/saicaca/fuwari/blob/main/CONTRIBUTING.md) untuk detail tentang cara berkontribusi ke proyek ini.
|
|
||||||
|
|
||||||
## 📄 Lisensi
|
|
||||||
|
|
||||||
Proyek ini dilisensikan di bawah MIT License.
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
> Dokumentasi ini tersedia dalam Bahasa Indonesia. Untuk bahasa lain, lihat README di direktori docs.
|
|
||||||
@@ -1,85 +0,0 @@
|
|||||||
# 🍥Fuwari
|
|
||||||
|
|
||||||
[Astro](https://astro.build) で構築された静的ブログテンプレート
|
|
||||||
|
|
||||||
[**🖥️ライブデモ (Vercel)**](https://fuwari.vercel.app)
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
## ✨ 特徴
|
|
||||||
|
|
||||||
- [x] [Astro](https://astro.build) 及び [Tailwind CSS](https://tailwindcss.com) で構築
|
|
||||||
- [x] スムーズなアニメーションとページ遷移
|
|
||||||
- [x] ライト/ダークテーマ対応
|
|
||||||
- [x] カスタマイズ可能なテーマカラーとバナー
|
|
||||||
- [x] レスポンシブデザイン
|
|
||||||
- [ ] コメント機能
|
|
||||||
- [x] 検索機能
|
|
||||||
- [x] 目次
|
|
||||||
|
|
||||||
## 👀 以下が必要
|
|
||||||
|
|
||||||
- Node.js <= 22
|
|
||||||
- pnpm <= 9
|
|
||||||
|
|
||||||
## 🚀 使用方法 1
|
|
||||||
|
|
||||||
[create-fuwari](https://github.com/L4Ph/create-fuwari)を使用して、ローカルにプロジェクトを初期化します。
|
|
||||||
|
|
||||||
```sh
|
|
||||||
# npm
|
|
||||||
npm create fuwari@latest
|
|
||||||
|
|
||||||
# yarn
|
|
||||||
yarn create fuwari
|
|
||||||
|
|
||||||
# pnpm
|
|
||||||
pnpm create fuwari@latest
|
|
||||||
|
|
||||||
# bun
|
|
||||||
bun create fuwari@latest
|
|
||||||
|
|
||||||
# deno
|
|
||||||
deno run -A npm:create-fuwari@latest
|
|
||||||
```
|
|
||||||
|
|
||||||
1. `src/config.ts` ファイルを編集する事でブログを自分好みにカスタマイズ出来ます。
|
|
||||||
2. `pnpm new-post <filename>` で新しい記事を作成し、`src/content/posts/`.フォルダ内で編集します。
|
|
||||||
3. 作成したブログをVercel、Netlify、GitHub Pagesなどにデプロイするには[ガイド](https://docs.astro.build/ja/guides/deploy/)に従って下さい。加えて、別途デプロイを行う前に `astro.config.mjs` を編集してサイト構成を変更する必要があります。
|
|
||||||
|
|
||||||
## 🚀 使用方法 2
|
|
||||||
|
|
||||||
1. [テンプレート](https://github.com/saicaca/fuwari/generate)から新しいリポジトリを作成するかCloneをします。
|
|
||||||
2. ブログをローカルで編集するには、リポジトリをクローンした後、`pnpm install` と `pnpm add sharp` を実行して依存関係をインストールします。
|
|
||||||
- [pnpm](https://pnpm.io) がインストールされていない場合は `npm install -g pnpm` で導入可能です。
|
|
||||||
3. `src/config.ts` ファイルを編集する事でブログを自分好みにカスタマイズ出来ます。
|
|
||||||
4. `pnpm new-post <filename>` で新しい記事を作成し、`src/content/posts/`.フォルダ内で編集します。
|
|
||||||
5. 作成したブログをVercel、Netlify、GitHub Pagesなどにデプロイするには[ガイド](https://docs.astro.build/ja/guides/deploy/)に従って下さい。加えて、別途デプロイを行う前に `astro.config.mjs` を編集してサイト構成を変更する必要があります。
|
|
||||||
|
|
||||||
## ⚙️ 記事のフロントマター
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
---
|
|
||||||
title: My First Blog Post
|
|
||||||
published: 2023-09-09
|
|
||||||
description: This is the first post of my new Astro blog.
|
|
||||||
image: /images/cover.jpg
|
|
||||||
tags: [Foo, Bar]
|
|
||||||
category: Front-end
|
|
||||||
draft: false
|
|
||||||
---
|
|
||||||
```
|
|
||||||
|
|
||||||
## 🧞 コマンド
|
|
||||||
|
|
||||||
すべてのコマンドは、ターミナルでプロジェクトのルートから実行する必要があります:
|
|
||||||
|
|
||||||
| Command | Action |
|
|
||||||
|:------------------------------------|:--------------------------------------------|
|
|
||||||
| `pnpm install` AND `pnpm add sharp` | 依存関係のインストール |
|
|
||||||
| `pnpm dev` | `localhost:4321` で開発用ローカルサーバーを起動 |
|
|
||||||
| `pnpm build` | `./dist/` にビルド内容を出力 |
|
|
||||||
| `pnpm preview` | デプロイ前の内容をローカルでプレビュー |
|
|
||||||
| `pnpm new-post <filename>` | 新しい投稿を作成 |
|
|
||||||
| `pnpm astro ...` | `astro add`, `astro check` の様なコマンドを実行する際に使用 |
|
|
||||||
| `pnpm astro --help` | Astro CLIのヘルプを表示 |
|
|
||||||
@@ -1,82 +0,0 @@
|
|||||||
# 🍥Fuwari
|
|
||||||
|
|
||||||
[Astro](https://astro.build)로 구축된 정적 블로그 템플릿입니다.
|
|
||||||
|
|
||||||
[**🖥️미리보기 (Vercel)**](https://fuwari.vercel.app)
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
## ✨ 특징
|
|
||||||
|
|
||||||
- [x] [Astro](https://astro.build) 및 [Tailwind CSS](https://tailwindcss.com)로 구축됨
|
|
||||||
- [x] 부드러운 애니메이션 및 페이지 전환
|
|
||||||
- [x] 라이트 모드 / 다크 모드
|
|
||||||
- [x] 사용자 정의 가능한 테마 색상 및 배너
|
|
||||||
- [x] 반응형 디자인
|
|
||||||
- [x] [Pagefind](https://pagefind.app/)를 이용한 검색 기능
|
|
||||||
- [x] [Markdown 확장 기능](https://github.com/saicaca/fuwari?tab=readme-ov-file#-markdown-extended-syntax)
|
|
||||||
- [x] 목차
|
|
||||||
- [x] RSS 피드
|
|
||||||
|
|
||||||
## 🚀 시작하기
|
|
||||||
1. 블로그 저장소를 생성하세요:
|
|
||||||
- 이 템플릿에서 [새 저장소를 생성](https://github.com/saicaca/fuwari/generate)하거나 이 저장소를 포크하세요.
|
|
||||||
- 또는 다음 명령어 중 하나를 실행하세요:
|
|
||||||
```sh
|
|
||||||
npm create fuwari@latest
|
|
||||||
yarn create fuwari
|
|
||||||
pnpm create fuwari@latest
|
|
||||||
bun create fuwari@latest
|
|
||||||
deno run -A npm:create-fuwari@latest
|
|
||||||
```
|
|
||||||
2. 로컬에서 블로그를 수정하려면, 저장소를 복제하고 `pnpm install`을 실행하여 종속성을 설치하세요.
|
|
||||||
- [pnpm](https://pnpm.io)이 설치되어 있지 않다면 `npm install -g pnpm`을 실행하여 설치하세요.
|
|
||||||
3. `src/config.ts`설정 파일을 수정하여 블로그를 커스터마이징하세요.
|
|
||||||
4. `pnpm new-post <filename>`을 실행하여 새 게시물을 만들고 `src/content/posts/`에서 수정하세요.
|
|
||||||
5. [가이드](https://docs.astro.build/en/guides/deploy/)에 따라 블로그를 Vercel, Netlify, Github Pages 등에 배포하세요. 배포하기 전에 `astro.config.mjs`에서 사이트 구성을 수정해야 합니다.
|
|
||||||
|
|
||||||
## ⚙️ 게시물의 머리말 설정
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
---
|
|
||||||
title: 내 첫 블로그 게시물
|
|
||||||
published: 2023-09-09
|
|
||||||
description: 내 새로운 Astro 블로그의 첫 번째 게시물입니다!
|
|
||||||
image: ./cover.jpg
|
|
||||||
tags: [Foo, Bar]
|
|
||||||
category: Front-end
|
|
||||||
draft: false
|
|
||||||
lang: jp # 게시물의 언어가 `config.ts`의 사이트 언어와 다른 경우에만 설정합니다.
|
|
||||||
---
|
|
||||||
```
|
|
||||||
## 🧩 마크다운 확장 구문
|
|
||||||
Astro의 기본 [GitHub Flavored Markdown](https://github.github.com/gfm/) 지원 외에도 몇 가지 추가적인 마크다운 기능이 포함되어 있습니다.
|
|
||||||
- Admonitions ([미리보기 및 사용법](https://fuwari.vercel.app/posts/markdown-extended/#admonitions))
|
|
||||||
- GitHub 저장소 카드 ([미리보기 및 사용법](https://fuwari.vercel.app/posts/markdown-extended/#github-repository-cards))
|
|
||||||
- Expressive Code를 사용한 향상된 코드 블록 ([미리보기](https://fuwari.vercel.app/posts/expressive-code/) / [문서](https://expressive-code.com/))
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## ⚡ 명령어
|
|
||||||
|
|
||||||
모든 명령어는 프로젝트 최상단, 터미널에서 실행됩니다:
|
|
||||||
|
|
||||||
| Command | Action |
|
|
||||||
|:------------------------------------|:-------------------------------------------------|
|
|
||||||
| `pnpm install` | 종속성을 설치합니다. |
|
|
||||||
| `pnpm dev` | `localhost:4321`에서 로컬 개발 서버를 시작합니다. |
|
|
||||||
| `pnpm build` | `./dist/`에 프로덕션 사이트를 구축합니다. |
|
|
||||||
| `pnpm check` | 코드에서 오류를 확인합니다. |
|
|
||||||
| `pnpm format` | Biome을 사용하여 코드를 포멧합니다. |
|
|
||||||
| `pnpm preview` | 배포하기 전에 로컬에서 빌드 미리보기 |
|
|
||||||
| `pnpm new-post <filename>` | 새 게시물 작성 |
|
|
||||||
| `pnpm astro ...` | `astro add`, `astro check`와 같은 CLI 명령어 실행 |
|
|
||||||
| `pnpm astro --help` | Astro CLI를 사용하여 도움 받기 |
|
|
||||||
|
|
||||||
## ✏️ 기여
|
|
||||||
이 프로젝트에 기여하는 방법에 대한 자세한 내용은 [기여 가이드](https://github.com/saicaca/fuwari/blob/main/CONTRIBUTING.md)를 확인하세요.
|
|
||||||
|
|
||||||
## 📄 라이선스
|
|
||||||
이 프로젝트는 MIT 라이선스에 따라 라이선스가 부여됩니다.
|
|
||||||
|
|
||||||
[](https://app.fossa.com/projects/git%2Bgithub.com%2Fsaicaca%2Ffuwari?ref=badge_large&issueType=license)
|
|
||||||
@@ -1,84 +0,0 @@
|
|||||||
# 🍥Fuwari
|
|
||||||
|
|
||||||
แม่แบบสำหรับเว็บบล็อกแบบ static สร้างด้วย [Astro](https://astro.build)
|
|
||||||
|
|
||||||
[**🖥️ ตัวอย่างการใช้งานจริง (Vercel)**](https://fuwari.vercel.app)
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
## ✨ คุณสมบัติ
|
|
||||||
|
|
||||||
- [x] สร้างด้วย [Astro](https://astro.build) และ [Tailwind CSS](https://tailwindcss.com)
|
|
||||||
- [x] มีอนิเมชั่นและการเปลี่ยนหน้าอย่างลื่นไหล
|
|
||||||
- [x] โหมดสว่าง / โหมดมืด
|
|
||||||
- [x] ปรับแต่งสีธีมและแบนเนอร์ได้
|
|
||||||
- [x] Responsive design (หน้าตาเว็บปรับเปลี่ยนตามขนาดจอ)
|
|
||||||
- [x] ฟังก์ชันการค้นหา ขับเคลื่อนด้วย [Pagefind](https://pagefind.app/)
|
|
||||||
- [x] [คุณสมบัติเพิ่มเติมสำหรับมาร์กดาวน์](https://github.com/saicaca/fuwari/blob/main/docs/README.th.md#-markdown-extended-syntax)
|
|
||||||
- [x] สารบัญ
|
|
||||||
- [x] RSS feed
|
|
||||||
|
|
||||||
## 🚀 เริ่มต้นใช้งาน
|
|
||||||
|
|
||||||
1. สร้าง repository ใหม่สำหรับบล็อกของคุณ:
|
|
||||||
- [Generate repository ใหม่](https://github.com/saicaca/fuwari/generate) ขึ้นมาจากแม่แบบนี้ หรือจะ fork repository นี้ก็ได้
|
|
||||||
- หรือจะสร้างโดยการเลือกรันคำสั่งต่อไปนี้ คำสั่งใดคำสั่งหนึ่ง:
|
|
||||||
```sh
|
|
||||||
npm create fuwari@latest
|
|
||||||
yarn create fuwari
|
|
||||||
pnpm create fuwari@latest
|
|
||||||
bun create fuwari@latest
|
|
||||||
deno run -A npm:create-fuwari@latest
|
|
||||||
```
|
|
||||||
2. เริ่มแก้ไขบล็อกของคุณแบบ local โดยการ clone repository ของคุณ (จากข้อ 1) ไว้ในเครื่องของคุณ แล้วรันคำสั่ง `pnpm install` เพื่อติดตั้ง dependencies ที่จำเป็น
|
|
||||||
- ติดตั้ง [pnpm](https://pnpm.io) ด้วยคำสั่ง `npm install -g pnpm` ก่อน ถ้ายังไม่เคยติดตั้ง
|
|
||||||
3. แก้ไขไฟล์การตั้งค่า `src/config.ts` เพื่อปรับแต่งบล็อกของคุณ
|
|
||||||
4. รันคำสั่ง `pnpm new-post <filename>` เพื่อสร้างโพสต์ใหม่ใน `src/content/posts/` และแก้ไขไฟล์โพสต์นั้นๆ ให้สมบูรณ์
|
|
||||||
5. Deploy เว็บบล็อกของคุณไปยัง Vercel, Netlify, GitHub Pages หรือบริการอื่นๆ โดยอ้างอิงวิธีการจาก[คู่มือนี้](https://docs.astro.build/en/guides/deploy/) อย่าลืมแก้ไขการตั้งค่าเว็บไซต์ในไฟล์ `astro.config.mjs` ก่อนที่คุณจะ deploy เว็บ
|
|
||||||
|
|
||||||
## 📝 Frontmatter (ส่วนหัวไฟล์) ของโพสต์
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
---
|
|
||||||
title: โพสต์แรกของฉัน
|
|
||||||
published: 2023-09-09
|
|
||||||
description: นี่คือโพสต์แรกของเว็บบล็อก Astro อันใหม่ของฉัน
|
|
||||||
image: ./cover.jpg
|
|
||||||
tags: [Foo, Bar]
|
|
||||||
category: Front-end
|
|
||||||
draft: false
|
|
||||||
lang: jp # เขียนค่านี้เมื่อภาษาของโพสต์นั้นๆ แตกต่างจากภาษาของเว็บไซต์ที่ตั้งค่าไว้ใน `config.ts` เท่านั้น
|
|
||||||
---
|
|
||||||
```
|
|
||||||
|
|
||||||
## 🧩 Markdown Extended Syntax
|
|
||||||
|
|
||||||
เดิมที Astro มีการสนับสนุน[ภาษามาร์กดาวน์แบบของ GitHub](https://github.github.com/gfm/) ไว้อยู่แล้ว แต่ Fuwari ได้เพิ่มเติมคุณสมบัติพิเศษอื่นๆ เข้าไปอีก:
|
|
||||||
|
|
||||||
- Admonitions หรือ กล่องข้อมูลพิเศษ ([ดูตัวอย่างและการใช้งาน](https://fuwari.vercel.app/posts/markdown-extended/#admonitions))
|
|
||||||
- การ์ด GitHub Repository ([ดูตัวอย่างและการใช้งาน](https://fuwari.vercel.app/posts/markdown-extended/#github-repository-cards))
|
|
||||||
- บล็อกโค้ดขั้นสูง ด้วย Expressive Code ([ดูตัวอย่าง](https://fuwari.vercel.app/posts/expressive-code/) / [เอกสารประกอบ](https://expressive-code.com/))
|
|
||||||
|
|
||||||
## ⚡ คำสั่ง
|
|
||||||
|
|
||||||
คำสั่งที่รันได้ใน terminal จาก root ของโปรเจกต์:
|
|
||||||
|
|
||||||
| คำสั่ง | การทำงาน |
|
|
||||||
|:---------------------------|:-------------------------------------------------------|
|
|
||||||
| `pnpm install` | ติดตั้ง dependencies |
|
|
||||||
| `pnpm dev` | เปิดเซิร์ฟเวอร์สำหรับการพัฒนาแบบ local ที่ `localhost:4321` |
|
|
||||||
| `pnpm build` | Build เว็บไซต์สำหรับใช้งานจริงไปยังโฟลเดอร์ `./dist/` |
|
|
||||||
| `pnpm preview` | ดูตัวอย่าง build ของคุณแบบ local ก่อนที่จะ deploy จริง |
|
|
||||||
| `pnpm check` | ดำเนินการตรวจสอบหาข้อผิดพลาดในโค้ดของคุณ |
|
|
||||||
| `pnpm format` | จัดรูปแบบโค้ดของคุณด้วย Biome |
|
|
||||||
| `pnpm new-post <filename>` | สร้างโพสต์ใหม่ |
|
|
||||||
| `pnpm astro ...` | รันคำสั่ง CLI เช่น `astro add`, `astro check` |
|
|
||||||
| `pnpm astro --help` | แสดงวิธีใช้งาน Astro CLI |
|
|
||||||
|
|
||||||
## ✏️ การมีส่วนร่วม
|
|
||||||
|
|
||||||
กรุณาอ่าน [แนวทางการมีส่วนร่วม](https://github.com/saicaca/fuwari/blob/main/CONTRIBUTING.md) สำหรับรายละเอียดวิธีการมีส่วนร่วมในโปรเจกต์นี้
|
|
||||||
|
|
||||||
## 📄 สัญญาอนุญาต
|
|
||||||
|
|
||||||
โปรเจกต์นี้เผยแพร่ภายใต้สัญญาอนุญาตแบบ MIT License
|
|
||||||
@@ -1,84 +0,0 @@
|
|||||||
# 🍥Fuwari
|
|
||||||
|
|
||||||
Một mẫu blog tĩnh được xây bằng [Astro](https://astro.build).
|
|
||||||
|
|
||||||
[**🖥️ Xem bản dùng thử (Vercel)**](https://fuwari.vercel.app)
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
## ✨ Tính năng
|
|
||||||
|
|
||||||
- [x] Được xây dựng bằng [Astro](https://astro.build) và [Tailwind CSS](https://tailwindcss.com)
|
|
||||||
- [x] Có hoạt ảnh đổi chuyển trang mượt mà
|
|
||||||
- [x] Chế độ sáng / tối
|
|
||||||
- [x] Màu sắc và biểu ngữ có thể tùy chỉnh được
|
|
||||||
- [x] Thiết kế nhanh nhạy
|
|
||||||
- [x] Có chức năng tìm kiếm với [Pagefind](https://pagefind.app/)
|
|
||||||
- [x] [Có các tính năng mở rộng của Markdown](https://github.com/saicaca/fuwari?tab=readme-ov-file#-markdown-extended-syntax)
|
|
||||||
- [x] Có mục lục
|
|
||||||
- [x] Nguồn cấp dữ liệu RSS
|
|
||||||
|
|
||||||
## 🚀 Bắt đầu
|
|
||||||
|
|
||||||
1. Tạo kho lưu trữ blog của bạn:
|
|
||||||
- [Tạo một kho lưu trữ mới](https://github.com/saicaca/fuwari/generate) từ mẫu này hoặc fork kho lưu trữ này.
|
|
||||||
- Hoặc chạy một trong các lệnh sau:
|
|
||||||
```sh
|
|
||||||
npm create fuwari@latest
|
|
||||||
yarn create fuwari
|
|
||||||
pnpm create fuwari@latest
|
|
||||||
bun create fuwari@latest
|
|
||||||
deno run -A npm:create-fuwari@latest
|
|
||||||
```
|
|
||||||
2. Để chỉnh sửa blog của bạn trên máy cục bộ, hãy clone kho lưu trữ của bạn, chạy lệnh `pnpm install` để cài đặt các phụ thuộc..
|
|
||||||
- Cài đặt [pnpm](https://pnpm.io) `npm install -g pnpm` nếu chưa có.
|
|
||||||
3. Chỉnh sửa tệp cấu hình `src/config.ts` để tùy chỉnh blog của bạn.
|
|
||||||
4. Chạy `pnpm new-post <filename>` để tạo một bài viết mới và chỉnh sửa nó trong `src/content/posts/`.
|
|
||||||
5. Triển khai blog của bạn lên Vercel, Netlify, GitHub Pages, etc. theo [chỉ dẫn](https://docs.astro.build/en/guides/deploy/). Bạn cần chỉnh sửa cấu hình trang web trong `astro.config.mjs` trước khi triển khai.
|
|
||||||
|
|
||||||
## 📝 Tiêu đề đầy đủ của bài viết
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
---
|
|
||||||
title: Blog đầu tiên của mình
|
|
||||||
published: 2023-09-09
|
|
||||||
description: Đây là bài viết đầu tiên vủa mình trên trang blog tạo bằng Astro này.
|
|
||||||
image: ./cover.jpg
|
|
||||||
tags: [Foo, Bar]
|
|
||||||
category: Front-end
|
|
||||||
draft: false
|
|
||||||
lang: jp # Chỉ đặt nếu ngôn ngữ của bài viết khác với ngôn ngữ của trang web trong `config.ts`
|
|
||||||
---
|
|
||||||
```
|
|
||||||
|
|
||||||
## 🧩 Cú pháp Markdown mở rộng
|
|
||||||
|
|
||||||
Ngoài việc Astro đã có hỗ trợ mặc định cho [Markdown vị Github](https://github.github.com/gfm/), một số tính năng Markdown khác cũng đã được bổ sung:
|
|
||||||
|
|
||||||
- Chêm xen ([Xem trước và Cách sử dụng](https://fuwari.vercel.app/posts/markdown-extended/#admonitions))
|
|
||||||
- Thẻ hiển thị kho lưu trữ GitHub ([Xem trước và Cách sử dụng](https://fuwari.vercel.app/posts/markdown-extended/#github-repository-cards))
|
|
||||||
- Các khối mã nâng cao với Expressive Code ([Xem trước](https://fuwari.vercel.app/posts/expressive-code/) / [Tài liệu](https://expressive-code.com/))
|
|
||||||
|
|
||||||
## ⚡ Lệnh
|
|
||||||
|
|
||||||
Tất cả các lệnh được chạy từ thư mục gốc của dự án, từ một bảng điều khiển:
|
|
||||||
|
|
||||||
| Lệnh | Mục đích |
|
|
||||||
|:---------------------------|:----------------------------------------------------|
|
|
||||||
| `pnpm install` | Cài đặt các phụ thuộc |
|
|
||||||
| `pnpm dev` | Khởi động máy chủ cục bộ tại `localhost:4321` |
|
|
||||||
| `pnpm build` | Xây dựng trang web của bạn vào `./dist/` |
|
|
||||||
| `pnpm preview` | Xem trước bản web cục bộ của bạn, trước khi triển khai |
|
|
||||||
| `pnpm check` | Chạy kiểm tra lỗi trong mã của bạn |
|
|
||||||
| `pnpm format` | Định dạng mã của bạn bằng Biome |
|
|
||||||
| `pnpm new-post <filename>` | Tạo một bài viết mới |
|
|
||||||
| `pnpm astro ...` | Chạy các lệnh CLI như `astro add`, `astro check` |
|
|
||||||
| `pnpm astro --help` | Nhận trợ giúp sử dụng Astro CLI |
|
|
||||||
|
|
||||||
## ✏️ Đóng góp
|
|
||||||
|
|
||||||
Xem [Hướng dẫn đóng góp](https://github.com/saicaca/fuwari/blob/main/CONTRIBUTING.md) để biết thêm chi tiết về cách đóng góp cho dự án này.
|
|
||||||
|
|
||||||
## 📄 Giấy phép
|
|
||||||
|
|
||||||
Dự án này đã được cấp Giấy phép MIT.
|
|
||||||
@@ -1,86 +0,0 @@
|
|||||||
# 🍥Fuwari
|
|
||||||
|
|
||||||
基于 [Astro](https://astro.build) 开发的静态博客模板。
|
|
||||||
|
|
||||||
[**🖥️在线预览(Vercel)**](https://fuwari.vercel.app)
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
## ✨ 功能特性
|
|
||||||
|
|
||||||
- [x] 基于 Astro 和 Tailwind CSS 开发
|
|
||||||
- [x] 流畅的动画和页面过渡
|
|
||||||
- [x] 亮色 / 暗色模式
|
|
||||||
- [x] 自定义主题色和横幅图片
|
|
||||||
- [x] 响应式设计
|
|
||||||
- [ ] 评论
|
|
||||||
- [x] 搜索
|
|
||||||
- [x] 文内目录
|
|
||||||
|
|
||||||
## 👀 要求
|
|
||||||
|
|
||||||
- Node.js <= 22
|
|
||||||
- pnpm <= 9
|
|
||||||
|
|
||||||
## 🚀 使用方法 1
|
|
||||||
|
|
||||||
使用 [create-fuwari](https://github.com/L4Ph/create-fuwari) 在本地初始化项目。
|
|
||||||
|
|
||||||
```sh
|
|
||||||
# npm
|
|
||||||
npm create fuwari@latest
|
|
||||||
|
|
||||||
# yarn
|
|
||||||
yarn create fuwari
|
|
||||||
|
|
||||||
# pnpm
|
|
||||||
pnpm create fuwari@latest
|
|
||||||
|
|
||||||
# bun
|
|
||||||
bun create fuwari@latest
|
|
||||||
|
|
||||||
# deno
|
|
||||||
deno run -A npm:create-fuwari@latest
|
|
||||||
```
|
|
||||||
|
|
||||||
1. 通过配置文件 `src/config.ts` 自定义博客
|
|
||||||
2. 执行 `pnpm new-post <filename>` 创建新文章,并在 `src/content/posts/` 目录中编辑
|
|
||||||
3. 参考[官方指南](https://docs.astro.build/zh-cn/guides/deploy/)将博客部署至 Vercel, Netlify, GitHub Pages 等;部署前需编辑 `astro.config.mjs` 中的站点设置。
|
|
||||||
|
|
||||||
## 🚀 使用方法 2
|
|
||||||
|
|
||||||
1. 使用此模板[生成新仓库](https://github.com/saicaca/fuwari/generate)或 Fork 此仓库
|
|
||||||
2. 进行本地开发,Clone 新的仓库,执行 `pnpm install` 和 `pnpm add sharp` 以安装依赖
|
|
||||||
- 若未安装 [pnpm](https://pnpm.io),执行 `npm install -g pnpm`
|
|
||||||
3. 通过配置文件 `src/config.ts` 自定义博客
|
|
||||||
4. 执行 `pnpm new-post <filename>` 创建新文章,并在 `src/content/posts/` 目录中编辑
|
|
||||||
5. 参考[官方指南](https://docs.astro.build/zh-cn/guides/deploy/)将博客部署至 Vercel, Netlify, GitHub Pages 等;部署前需编辑 `astro.config.mjs` 中的站点设置。
|
|
||||||
|
|
||||||
## ⚙️ 文章 Frontmatter
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
---
|
|
||||||
title: My First Blog Post
|
|
||||||
published: 2023-09-09
|
|
||||||
description: This is the first post of my new Astro blog.
|
|
||||||
image: ./cover.jpg
|
|
||||||
tags: [Foo, Bar]
|
|
||||||
category: Front-end
|
|
||||||
draft: false
|
|
||||||
lang: jp # 仅当文章语言与 `config.ts` 中的网站语言不同时需要设置
|
|
||||||
---
|
|
||||||
```
|
|
||||||
|
|
||||||
## 🧞 指令
|
|
||||||
|
|
||||||
下列指令均需要在项目根目录执行:
|
|
||||||
|
|
||||||
| Command | Action |
|
|
||||||
|:----------------------------------|:----------------------------------|
|
|
||||||
| `pnpm install` 并 `pnpm add sharp` | 安装依赖 |
|
|
||||||
| `pnpm dev` | 在 `localhost:4321` 启动本地开发服务器 |
|
|
||||||
| `pnpm build` | 构建网站至 `./dist/` |
|
|
||||||
| `pnpm preview` | 本地预览已构建的网站 |
|
|
||||||
| `pnpm new-post <filename>` | 创建新文章 |
|
|
||||||
| `pnpm astro ...` | 执行 `astro add`, `astro check` 等指令 |
|
|
||||||
| `pnpm astro --help` | 显示 Astro CLI 帮助 |
|
|
||||||
@@ -11,6 +11,8 @@ const currentYear = new Date().getFullYear();
|
|||||||
<!--<div class="transition bg-[oklch(92%_0.01_var(--hue))] dark:bg-black rounded-2xl py-8 mt-4 mb-8 flex flex-col items-center justify-center px-6">-->
|
<!--<div class="transition bg-[oklch(92%_0.01_var(--hue))] dark:bg-black rounded-2xl py-8 mt-4 mb-8 flex flex-col items-center justify-center px-6">-->
|
||||||
<div class="transition border-dashed border-[oklch(85%_0.01_var(--hue))] dark:border-white/15 rounded-2xl mb-12 flex flex-col items-center justify-center px-6">
|
<div class="transition border-dashed border-[oklch(85%_0.01_var(--hue))] dark:border-white/15 rounded-2xl mb-12 flex flex-col items-center justify-center px-6">
|
||||||
<div class="transition text-50 text-sm text-center">
|
<div class="transition text-50 text-sm text-center">
|
||||||
|
<a href="https://icp.gov.moe/?keyword=20256087" target="_blank">萌ICP备20256087号</a>
|
||||||
|
<br>
|
||||||
© <span id="copyright-year">{currentYear}</span> {profileConfig.name}. All Rights Reserved.
|
© <span id="copyright-year">{currentYear}</span> {profileConfig.name}. All Rights Reserved.
|
||||||
<br>
|
<br>
|
||||||
<a class="transition link text-[var(--primary)] font-medium" target="_blank" href={url('rss.xml')}>RSS</a> /
|
<a class="transition link text-[var(--primary)] font-medium" target="_blank" href={url('rss.xml')}>RSS</a> /
|
||||||
|
|||||||
@@ -9,11 +9,11 @@ import type {
|
|||||||
import { LinkPreset } from "./types/config";
|
import { LinkPreset } from "./types/config";
|
||||||
|
|
||||||
export const siteConfig: SiteConfig = {
|
export const siteConfig: SiteConfig = {
|
||||||
title: "Ad_closeNN Blog",
|
title: "Ad_closeNN 的小站",
|
||||||
subtitle: "Ad_closeNN 的小站,时不时会刷新一些文档。",
|
subtitle: "Ad_closeNN 的小站,时不时会刷新一些野生的文档。",
|
||||||
lang: "zh_CN", // Language code, e.g. 'en', 'zh-CN', 'ja', etc.
|
lang: "zh_CN", // Language code, e.g. 'en', 'zh-CN', 'ja', etc.
|
||||||
themeColor: {
|
themeColor: {
|
||||||
hue: 250, // Invalid but fun( Default hue for the theme color, from 0 to 360. e.g. red: 0, teal: 200, cyan: 250, pink: 345
|
hue: 360, // Invalid but fun( Default hue for the theme color, from 0 to 360. e.g. red: 0, teal: 200, cyan: 250, pink: 345
|
||||||
fixed: false, // Hide the theme color picker for visitors
|
fixed: false, // Hide the theme color picker for visitors
|
||||||
},
|
},
|
||||||
banner: {
|
banner: {
|
||||||
@@ -29,7 +29,7 @@ export const siteConfig: SiteConfig = {
|
|||||||
background: {
|
background: {
|
||||||
enable: true, // Enable background image
|
enable: true, // Enable background image
|
||||||
//src: "https://eo-pic.2x.nz/h", // Background image URL (supports HTTPS)
|
//src: "https://eo-pic.2x.nz/h", // Background image URL (supports HTTPS)
|
||||||
src: "https://api.bimg.cc/random", // Bing daily theme
|
src: "https://bing.img.run/rand_1366x768.php", // Bing daily theme
|
||||||
position: "center", // Background position: 'top', 'center', 'bottom'
|
position: "center", // Background position: 'top', 'center', 'bottom'
|
||||||
size: "cover", // Background size: 'cover', 'contain', 'auto'
|
size: "cover", // Background size: 'cover', 'contain', 'auto'
|
||||||
repeat: "no-repeat", // Background repeat: 'no-repeat', 'repeat', 'repeat-x', 'repeat-y'
|
repeat: "no-repeat", // Background repeat: 'no-repeat', 'repeat', 'repeat-x', 'repeat-y'
|
||||||
@@ -60,7 +60,7 @@ export const navBarConfig: NavBarConfig = {
|
|||||||
LinkPreset.About,
|
LinkPreset.About,
|
||||||
{
|
{
|
||||||
name: "统计信息",
|
name: "统计信息",
|
||||||
url: "https://umami.adclosenn.top/share/aW5hYdseDHnqOX8K", // Internal links should not include the base path, as it is automatically added
|
url: "https://umami.adclosenn.top/share/XMDJoIb1D21UxHdH", // Internal links should not include the base path, as it is automatically added
|
||||||
external: true, // Show an external link icon and will open in a new tab
|
external: true, // Show an external link icon and will open in a new tab
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|||||||
|
After Width: | Height: | Size: 80 KiB |
|
After Width: | Height: | Size: 240 KiB |
|
After Width: | Height: | Size: 33 KiB |
|
After Width: | Height: | Size: 168 KiB |
|
After Width: | Height: | Size: 205 KiB |
|
After Width: | Height: | Size: 141 KiB |
|
After Width: | Height: | Size: 88 KiB |
|
After Width: | Height: | Size: 22 KiB |
|
After Width: | Height: | Size: 73 KiB |
@@ -2,7 +2,7 @@
|
|||||||
title: 新域名!
|
title: 新域名!
|
||||||
published: 2099-12-31
|
published: 2099-12-31
|
||||||
tags: ["域名"]
|
tags: ["域名"]
|
||||||
description: A simple example of a Markdown blog post.
|
description: 获得了一个新域名 *这使我充满了决心
|
||||||
image: ../assets/images/domain-inlist-adclosenn.top.png
|
image: ../assets/images/domain-inlist-adclosenn.top.png
|
||||||
category: 记录
|
category: 记录
|
||||||
draft: false
|
draft: false
|
||||||
|
|||||||
@@ -0,0 +1,60 @@
|
|||||||
|
---
|
||||||
|
title: 手把手自托管 Umami
|
||||||
|
published: 2025-08-07
|
||||||
|
tags: ["自行部署"]
|
||||||
|
description: Umami 是一个精美的网站统计分析工具,我们可以自托管它以解除官方限制
|
||||||
|
image: ../assets/images/umami-screenshot.png
|
||||||
|
category: 教程
|
||||||
|
draft: false
|
||||||
|
---
|
||||||
|
|
||||||
|
# 自行托管 Umami
|
||||||
|
|
||||||
|
## 什么是 Umami
|
||||||
|
[Umami](https://umami.is) 是一个[开源的](https://github.com/umami-software/umami)的网站统计工具。与 [Google Analytics](https://developers.google.com/analytics) 类似,但比 Google Analytics 的网页 UI 更简洁、精美。
|
||||||
|
|
||||||
|
## 为什么要自托管
|
||||||
|
[Umami](https://umami.is) 可搭配 [Umami Cloud](https://cloud.umami.is/signup) 托管 Umami App。但是这种方式相比自托管有诸多限制:
|
||||||
|
- 事件:100,000 次/月
|
||||||
|
- 被分析的网站:3 个/账号
|
||||||
|
- 数据保留:6 个月
|
||||||
|
- 有限的 API 访问
|
||||||
|
- ...更多可在 [umami/pricing](https://umami.is/pricing) 中查看
|
||||||
|
|
||||||
|
## 条件
|
||||||
|
- 一个托管平台账号(任选其一)。本教程以 [Netlify](https://www.netlify.com) 为托管平台演示。
|
||||||
|
- [Netlify](https://www.netlify.com)
|
||||||
|
- [Vercel](https://vercel.com)
|
||||||
|
- [Cloudflare](https://www.cloudflare.com)
|
||||||
|
- [Render](https://render.com)
|
||||||
|
- [Railway](https://railway.app)
|
||||||
|
- ...等
|
||||||
|
- 一个 [GitHub](https://github.com) 账号。
|
||||||
|
- 一个数据库。本教程以 [Neon](https://neon.com) 为数据库演示。
|
||||||
|
:::warning
|
||||||
|
Neon 仍有使用限制:[https://neon.com/pricing](https://neon.com/pricing)
|
||||||
|
- 500 MB 存储空间
|
||||||
|
:::
|
||||||
|
|
||||||
|
## 自托管
|
||||||
|
1. 来到 [Neon/signup](https://console.neon.tech/signup) 注册一个账号(注册过的直接去到 [console.neon.tech](https://console.neon.tech) )。
|
||||||
|
2. 注册后来到 [console.neon.tech](https://console.neon.tech)。
|
||||||
|
3. 点击 **Create Project** 按钮。 
|
||||||
|
4. 取一个项目名字,填到 **Project name**。**Cloud service provider** 和 **Region** 随便选一个即可。然后点击 **Create** 按钮创建项目。 
|
||||||
|
5. 在项目的 **Dashboard** 内点击右上角的 **Connect** 按钮,在 Connect 页面下方点击 **Show password**,将 `psql '` 后,末尾 `'` 前的内容复制下来。 
|
||||||
|
6. 访问 [@umami-software/umami](https://github.com/umami-software/umami/fork) ,将 umami 仓库 fork 到你的账户下。
|
||||||
|
7. 访问 [Netlify/start](https://app.netlify.com/start),在 **Let’s deploy your project with…** 里选择 **GitHub** 并授权到你的 GitHub 账户。
|
||||||
|
8. 选择刚刚 fork 的 umami 仓库 
|
||||||
|
9. **Project name** 随便填,**Build Command** 请填写 `yarn run build`(而不是系统给的 `pnpm run build-app`)。
|
||||||
|
10. 往下找到 **Environment variables**,点击 **Add environment variables**,选择 **Add ket/value pairs**。`Key` 中填写 `DATABASE_URL`,`Value` 填写在 [Neon Console](https://console.neon.tech/) (步骤5)中复制的链接。填写完毕后点击 **Deploy umami** 按钮来部署。 
|
||||||
|
11. 如果有自定义域名可以绑定自定义域名,优选等一些列步骤。这里就不多赘述了。
|
||||||
|
12. 访问部署好的 Umami 网页,第一次进入需要输入**默认**账号和密码。登录 Umami 后台成功后请尽快修改密码。
|
||||||
|
- **Username**:`admin`
|
||||||
|
- **Password**:`umami`
|
||||||
|

|
||||||
|
13. 登录成功后,可以在右上角切换**显示语言**。 
|
||||||
|
14. 至此,你已成功自托管一个 Umami 网站统计工具。恭喜你。
|
||||||
|
|
||||||
|
# 注意事项
|
||||||
|
:::caution
|
||||||
|
Umami 对于从台湾地区传来的请求,默认展示为 **ROC Flag + 台湾**。请注意风险,如需更改,请手动更改 Umami 文件。
|
||||||