本網站的主頁
Find a file
2025-09-28 15:13:34 +08:00
.vscode feat: initial commit 2025-09-10 19:51:13 +08:00
src feat: add 404 page, use table for page index, fix info in pages 2025-09-28 15:13:34 +08:00
ssg@0e919a3f7a feat: initial commit 2025-09-10 19:51:13 +08:00
tpl feat: add 404 page, use table for page index, fix info in pages 2025-09-28 15:13:34 +08:00
.gitignore feat: initial commit 2025-09-10 19:51:13 +08:00
.gitmodules feat: initial commit 2025-09-10 19:51:13 +08:00
CC-BY-4.0 feat: initial commit 2025-09-10 19:51:13 +08:00
LICENSE feat: initial commit 2025-09-10 19:51:13 +08:00
mk.sh feat: better content, initial omnisrv compat 2025-09-26 18:34:59 +08:00
README.md chore: update readme 2025-09-26 19:50:03 +08:00

amaharacya.one

基本流程

  1. 克隆此倉庫
  • git clone --recursive https://git.amaharacya.one/amainait/amaharacya.one.git
  1. 選擇 SSG 引擎
  • dummy-ssg: 準備依賴: apt install php-cli php-mbstring php-xml
  1. 構建靜態頁面
  • ./mk.sh
  • 結果置於 out 目錄。
  1. 伺服
  • 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 協議釋出。