HUGO
Menu
GitHub 87548 stars Mastodon

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                     config 的幫助
      --lang string              要顯示配置的語言。默認為定義的第一個語言。
      --printZero                在輸出中包含零值(例如 false、0、"")的配置選項
      --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)
      --noBuildLock                不創建 .hugo_build.lock 文件
      --quiet                      以安靜模式構建
  -M, --renderToMemory             渲染到內存(主要在運行服務器時有用)
  -s, --source string              讀取文件的相對文件系統路徑
      --themesDir string           主題目錄的文件系統路徑

另請參閱


Last updated: January 1, 0001
Improve this page