Hugo、twikoo、umami博客搭建

Hugo Hugo官网 # 安装 brew install hugo # 创建项目 hugo new site blog --format=yaml 创建git仓库 cd blog git init PaperMod主题 git submodule add https://github.com/adityatelange/hugo-PaperMod/ themes/PaperMod 修改配置文件hugo.yaml theme: PaperMod 启动测试 hugo server PaperMod主题 Github仓库 这个主题有许多可配置的选项,具体参考hugo.yaml配置文件或者主题Wiki baseURL: "https://example.com" title: PaperMod deFaultContentLanguage: zh languageCode: zh paginate: 5 theme: PaperMod enableRobotsTXT: true buildDrafts: false buildFuture: false buildExpired: false enableEmoji: true minify: disableXML: true minifyOutput: true taxonomies: category: categories tag: tags params: env: production # to enable google analytics, opengraph, twitter-cards and schema....

五月 5, 2024 · 3 分钟 · 556 字 · Raison Chan