微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

基于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

联系点九

QQ群


公众号

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐