hugo convert toYAML
hugo convert toYAML
將 Front Matter 轉換為 YAML 格式
說明
toYAML
將內容目錄中的所有 Front Matter 轉換為 YAML 格式。
hugo convert toYAML [flags] [args]
選項
-h, --help 查看 toYAML 的幫助
繼承自父指令的選項
--clock string 設定 Hugo 使用的時鐘,例如:--clock 2021-11-06T22:30:00.00+09:00
--config string 設定檔(預設為 hugo.yaml|json|toml)
--configDir string 設定檔目錄(預設為 "config")
-d, --destination string 寫入檔案的檔案系統路徑
-e, --environment string 建置環境
--ignoreVendorPaths string 忽略與給定 Glob 模式匹配的 _vendor 模組路徑
--logLevel string 記錄層級(debug|info|warn|error)
-o, --output string 輸出檔案的檔案系統路徑
--quiet 安靜模式建置
-M, --renderToMemory 渲染到記憶體(主要用於執行伺服器時)
-s, --source string 讀取檔案的相對檔案系統路徑
--themesDir string 主題目錄的檔案系統路徑
--unsafe 啟用較不安全的操作,請先備份
相關內容
- hugo convert - 將 Front Matter 轉換為其他格式