hugo convert
hugo convert
将前置 matter 转换为其他格式
概要
将前置 matter 转换为其他格式。
更多信息,请参阅 convert 的子命令 toJSON、toTOML 和 toYAML。
选项
-h, --help convert 命令的帮助信息
-o, --output string 写入文件的系统路径
--unsafe 启用不太安全的操作,请先备份
从父命令继承的选项
--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 convert toJSON - 将前置 matter 转换为 JSON
- hugo convert toTOML - 将前置 matter 转换为 TOML
- hugo convert toYAML - 将前置 matter 转换为 YAML