点九博客
基于hugo 搭建的博客系统
安装hugo
win10
choco install hugo -confirm
choco install hugo-extended -confirm
mac
brew install hugo
linux
brew install hugo
创建blog
hugo new site blog
添加themes
cd blog
git init
git submodule add https://github.com/olOwOlo/hugo-theme-even.git themes/even
echo theme = \"even\" >> config.toml
新建文章
hugo new post/hello.md
文章内容如下
---
title: "Hello,DianJiu"
date: 2021-08-03T11:34:52+08:00
draft: false
tags: ["hello"]
categories: ["生活记录"]
---
## 你好世界
这是第一篇博客
1. aaa
2. bbb
3. ccc
本地启动
hugo server --theme=even --buildDrafts
打包部署
hugo --theme=even --baseUrl="http://dianjiu.github.io/"
cd public
git init
git remote add origin https://github.com/coderzh/coderzh.github.io.git
git add -A
git commit -m "first commit"
git push -u origin main