OneDrive Rawfiles → Hugo Draft 轉換進度

日期: 2026-05-07
狀態: 第一階段完成(frontmatter 批次寫入)


已完成

使用 convert.py 批次處理,為全部 66 個原始筆記檔案加上 Hugo frontmatter:

  • author, draft: true, type: post, url 已填寫
  • title 從文章 H1 heading 提取,無 heading 則從 filename 轉換
  • categories / tags 依 filename + 內容關鍵字自動推斷
  • date 暫設為 2026-01-01T00:00:00+08:00(待發布時修正為實際日期)

Page bundles(含圖片,已建立目錄並搬移圖片)

目錄圖片數
migrate-mariadb-to-new-server-via-file/1
openvas-notes/2
set-windows-computer-system-model-name/7
ubuntu-an-unresolvable-problem-occurred-while-calculating-the-upgrade/1
win-11-rdp-with-microsoft-account/1

注意:windows-event-4227-4231-4266-tcpip.md 的圖片目錄名為 windows-event-4227-tcpip(與檔名不完全相符),圖片尚未整合,需手動處理。

HTML 轉換

  • configure-ubuntu-network-settings-using-netplan.html.md(內容保留原始 HTML,需手動轉換為 Markdown)

待處理

高優先

  1. 修正 date 欄位 — 所有文章 date 均為佔位值 2026-01-01,發布前需改為真實日期
  2. windows-event-4227-4231-4266-tcpip.md — 圖片未整合,需手動建立 page bundle
  3. configure-ubuntu-network-settings-using-netplan.md — 需將 HTML 內容轉為 Markdown

低優先(URL-only 文章,共 23 篇)

這些文章僅有參考連結,尚無實際內容,需日後補充:

  • 7-zip-use-large-memory-pages.md
  • automysqlbackup.md
  • change-virtualbox-dmi-info.md
  • configure-cpu-and-memory-limit-on-wsl.md
  • Convert Windows path for Windows Ubuntu Bash.md
  • dbeaver-export-to-excel.md
  • easy2boot.md
  • grafana-view-dashboards-without-password.md
  • how-to-set-response-filename-without-forcing-save-as-dialog.md
  • html-block-element-vs-inline-element.md
  • iptables-persistent.md
  • laravel-collection-php-iterable.md
  • laravel-model-trigger-event-manually.md
  • open-vmtools.md
  • php-regex-chinese-string.md
  • php-rotate-array.md
  • pve-disable-subscription-notice.md
  • tmux-save-all-scroll-contents.md
  • ubuntu-tasksel.md
  • using-php-installed-in-wsl-with-vscode.md
  • using-user-role-editor-to-customize-wordpress-permission.md
  • vue-watch-multi-layer.md
  • what-is-the-difference-between-unix-linux-bsd-and-gnu.md

散落圖片(未指派給任何文章)

位於 images/ 目錄根層,需手動確認歸屬:

  • images/screenshot_2020-02-20_09-54-10_001.png
  • images/screenshot_2020-04-26_1.png
  • images/screenshot_2020-09-04_1.jpg

發布流程提醒

  1. 修正 date 欄位為實際撰寫日期
  2. 補充文章內容(尤其是 URL-only 的文章)
  3. 將檔案從 __drafts/onedrive-rawfiles/ 移至 content/post/
  4. 設定 draft: false
Licensed under CC BY-NC-SA 3.0 TW
最後更新 2026-05-07
comments powered by Disqus