hugo new site
hugo new site
创建一个新站点
简介
在指定的目录中创建一个新站点。
hugo new site [path] [flags]参数
-f, --force 强制在非空目录中初始化
--format string 选择文件格式 (toml、yaml 或 json) (默认为 "toml" 格式)
-h, --help site 命令相关的帮助信息从父命令继承的参数
--clock string set the clock used by Hugo, e.g. --clock 2021-11-06T22:30:00.00+09:00
--config string config file (default is hugo.yaml|json|toml)
--configDir string config dir (default "config")
-d, --destination string filesystem path to write files to
-e, --environment string build environment
--ignoreVendorPaths string ignores any _vendor for module paths matching the given Glob pattern
--logLevel string log level (debug|info|warn|error)
--noBuildLock don't create .hugo_build.lock file
--quiet build in quiet mode
-M, --renderToMemory render to memory (mostly useful when running the server)
-s, --source string filesystem path to read files relative from
--themesDir string filesystem path to themes directory请参阅
- hugo new - Create new content
