博客从Hexo迁移至Hugo

安装 Hugo 并建立站点 按以下步骤建立站点 blog 并使用飞雪无情的 maupassant 主题(感谢),在浏览器中输入 http://localhost:1313 查看新创建站点。 brew install hugo hugo new site blog cd blog git init git clone https://github.com/rujews/maupassant-hugo themes/maupassant hugo new post/my-first-post.md hugo server -D 自定义菜单 在 config.toml 配置文件中新增: [menu] [[menu.main]] identifier = "research" name = "研究" url = "/research/" weight = 2 [[menu.main]] identifier = "archives" name = "归档" url = "/archives/" weight = 3 [[menu.main]] identifier = "about" name = "关于" url = "/about/" weight = 4 增加文章归档支持 新建 content/archives/index.md 文件,内容如下: ...

2022年10月8日 · 2 分钟 · 353 字