HUGO 食用系列(二)
修改目录结构: 完成初始化 HUGO 后,生成默认的目录结构为: my-site/ ... └── hugo.toml <-- 站点配置文件 为了使目录看起来清爽一些,创建一个父文件夹 config 和一个子文件夹 _default 并把所有的配置文件放在该目录中: my-site/ ... ├── config/ <-- 站点配置文件 │ └── _default/ │ └── hugo.toml ... 站点配置文件 HUGO 完成初始化后默认创建的站点 hugo.toml 只有三行配置: baseURL = 'https://example.org/' languageCode = 'en-us' title = 'My New Hugo Site' 后续对站点设置时会添加更多的配置项,以 PaperMod 主题的部分配置为例: baseURL = 'https://example.org/' languageCode = 'en-us' title = 'My New Hugo Site' theme = 'PaperMod' enableEmoji = true [markup] [markup.goldmark] [markup.goldmark.renderer] unsafe = true [params] DateFormat = '2006-01-02' defaultTheme = 'auto' # defaultTheme = 'light' # defaultTheme = 'dark' ShowWordCount = true ShowReadingTime = true ShowPostNavLinks = true ShowCodeCopyButtons = true ShowAllPagesInArchive = true [params....