這是一篇範例文章,示範文章的寫法。可以直接刪掉或改成自己的內容。
怎麼新增文章
在 content/posts/ 新增一個 .md 檔,檔名就是網址,例如 my-post.md 會變成 /posts/my-post/。檔案開頭放 frontmatter:
---
title: 文章標題
date: 2026-10-22
category: notes # 對應 categories.config.ts 的 key
excerpt: 列表上顯示的摘要
draft: true # 選填,草稿不會出現在網站上
---程式碼區塊
function greet(name: string) {
return `Hello, ${name}`;
}表格
| 項目 | 說明 |
|---|---|
| 文章 | content/posts/ |
| 作品集 | content/projects/ |
| 固定頁面 | content/pages/ |