hugo config
hugo config
顯示網站設定
說明
顯示網站設定,包括預設與自訂的設定值。
hugo config [command] [flags]
選項
-b, --baseURL string 主機名稱(及路徑)指向根目錄,例如:https://spf13.com/
--cacheDir string 快取目錄的檔案系統路徑
-c, --contentDir string 內容目錄的檔案系統路徑
--format string 優先的檔案格式(toml、yaml 或 json)(預設為 "toml")
-h, --help 查看設定的幫助
--lang string 指定顯示設定的語言。預設為第一個定義的語言。
--renderSegments strings 要渲染的命名片段(在片段配置中設定)
-t, --theme strings 使用的主題(位於 /themes/THEMENAME/)
繼承自父指令的選項
--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)
--quiet 安靜模式建置
-M, --renderToMemory 渲染到記憶體(主要用於執行伺服器時)
-s, --source string 讀取檔案的相對檔案系統路徑
--themesDir string 主題目錄的檔案系統路徑
相關內容
- hugo - 建置網站
- hugo config mounts - 列印設定的檔案掛載點