Portal 上線
這是第一篇文章,同時當作寫作範本。
新增文章
在 site/src/content/blog/<年>/ 新增一個 .md 檔,檔名就是網址的最後一段。開頭的設定區塊長這樣:
---
title: 文章標題
description: 一句話摘要(選填)
date: 2026-11-16
tags: [開箱, 3C 測試]
visibility: public # public(預設)或 private
draft: false # true 表示不發佈
---
三種可見度
| 設定 | 結果 |
|---|---|
不寫,或 visibility: public |
出現在網誌列表與 RSS |
visibility: private |
只出現在 /dash/blog/,登入後才看得到 |
draft: true |
正式建置時不發佈,本機預覽看得到 |
程式碼
def progress(done: int, total: int) -> float:
return done / total