hugo#

下载地址#

https://github.com/gohugoio/hugo/releases/

主题地址#

https://themes.gohugo.io

创建网站#

hugo new site blog
cd blog
git init
git submodule add https://github.com/theNewDynamic/gohugo-theme-ananke.git themes/ananke
echo "theme = 'ananke'" >> hugo.toml

添加内容#

cd blog
hugo new content/posts/my-first-post.md

正文内容

---
title: "我的第一篇文章"
date: 2022-11-20T09:03:20-08:00
draft: true
---
## 简介

这是 **粗体** 文本,这是 *斜体* 文本。

访问 [Hugo](https://gohugo.io) 网站!

配置网站#

baseURL = 'https://example.org/'
languageCode = 'en-us'
title = '我的新 Hugo 网站'
theme = 'ananke'

发布网站#

cd blog
hugo