安装

直接下载 hugo 即可,然后随便把 hugo.exe 放到哪里,设置好环境变量 Path,使得可以在命令窗口中使用 再安装好 golang 语言

创建博客

1
2
3
hugo new site MyBlog
cd MyBlog
git init

安装主题

git submodule add https://github.com/olOwOlo/hugo-theme-even themes/even

even主题: 在主题的 exampleSite 目录下有一个 config.toml 文件,将这个 config.toml 文件复制到你的站点目录下,根据自己的需求更改即可。 注意: 对于这个主题,你应该使用 post 而不是 posts,即 hugo new post/some-content.md。

创建文章

hugo new post/hugo.md

内容:

1
2
3
4
title: Unity3D EditorWindow Table
date: 2018-07-25 22:17:00
categories: ["unity3d"]
tags: ["unity3d"]

本地测试

hugo server

本地发布

自动创建public目录,使用命令

hugo