博客地址:https://rushui.net
hugo new site blog -f yaml
cd blog
git init
git submodule add https://github.com/hugo-theme/rs.git themes/rs
echo "theme: rs" >> config.yaml
hugo server
blog中所有目录都是空的,所以只保留用到的目录和文件即可
content #内容目录
static #静态文件目录
themes #主题目录
config.yaml #配置文件
hugo new posts/blog-quickstart.md
posts/blog-quickstart.md 加入以下内容
---
title: "用hugo快速创建一个博客"
date: 2023-03-04T17:53:26+08:00
tags : ["如水"]
---
这是通过如水博客主题模板创建的内容。
hugo server -D
打开 http://localhost:1313/ 即可看到刚才加的内容