基于hugo搭建个人博客平台
作者:互联网
点九博客
基于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
联系点九
标签:even,git,--,hugo,博客,theme,搭建 来源: https://www.cnblogs.com/dianjiu/p/15094886.html