本網站的主頁
.vscode | ||
src | ||
ssg@0e919a3f7a | ||
tpl | ||
.gitignore | ||
.gitmodules | ||
CC-BY-4.0 | ||
LICENSE | ||
mk.sh | ||
README.md |
amaharacya.one
基本流程
- 克隆此倉庫
git clone --recursive https://git.amaharacya.one/amainait/amaharacya.one.git
- 選擇 SSG 引擎
- dummy-ssg: 準備依賴:
apt install php-cli php-mbstring php-xml
- 構建靜態頁面
./mk.sh
- 結果置於
out
目錄。
- 伺服
python3 -m http.server -d out
- 正式部署請使用更好的靜態檔案伺服器。
小技巧
新頁面放在 src/pages
。
PHP 模板在 tpl/*.php
。
一級標題在 /page
頁面自動列出。
與 dummy-ssg 不同,Markdown 文檔頭部使用簡易鍵值對,而非 JSON:
---
title Building Website
lang en-US
---
# About How to Build a Website
...
授權
Copyright © 2025 Amahara Oyama & Nait.
除非另有宣告,所有原始碼以 MIT/Expat 協議釋出,所有頁面內容以 CC-BY-4.0 協議釋出。