在 Finder 中右鍵任意資料夾,選擇用 moss 發佈。如果資料夾中有 markdown 檔案,你已經擁有了一個網站;如果是空資料夾,moss 會開啟編輯器,幫你建立第一個頁面。

每個 .md 檔案變成一個頁面,每個子資料夾變成一個欄目。資料夾中的 index.md 是該資料夾的頁面。

my-site/
├── index.md        ← 首頁
├── about.md        ← /about/
└── posts/
    ├── index.md    ← /posts/
    └── hello.md    ← /posts/hello/

圖片、影片、筆記本放在同一個資料夾中——在 markdown 中引用,moss 處理其餘一切。

2 articles

設計

用 CSS 和 JavaScript 自訂你的網站。

4 articles

擴充

建構接入編譯流程的外掛。

3 articles

撰寫

用 frontmatter 和短代碼塑造你的頁面。


結構

檔案與資料夾如何變成頁面、欄目和導覽。

部署

將網站發佈到 mosspub.com 或 GitHub Pages。

媒體

圖片、影片、筆記本等檔案的處理方式。

Published with moss