Skip to content

zhangxiaofeng05/zhangxiaofeng05.github.io

Repository files navigation

deploy GitHub repo file or directory count (in path)

local

install hugo

brew install hugo

init

hugo new site zhangxiaofeng05.github.io --format yaml
git init
git remote add origin git@github.com:zhangxiaofeng05/zhangxiaofeng05.github.io.git
git submodule add https://github.com/adityatelange/hugo-PaperMod.git themes/PaperMod

baseURL 为 https://zhangxiaofeng05.github.io/  
关键点: 必须是完整的、带有协议(HTTPS)且末尾带斜杠/的URL,否则影响 sitemap.xml 生成

clone

git clone git@github.com:zhangxiaofeng05/zhangxiaofeng05.github.io.git

themes

git submodule update --init --recursive

Add content

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

run

hugo server

github actions

https://gohugo.io/host-and-deploy/host-on-github-pages/

About

hugo blog

Resources

Stars

Watchers

Forks