Github创建个人博客

1、Create a new repository

设置域名:.github.io

设置.gitignore:Node

2、打印一个hello到html

GitHub Pages | Websites for you and your projects, hosted directly from your GitHub repository. Just edit, push, and your changes are live.Websites for you and your projects, hosted directly from your GitHub repository. Just edit, push, and your changes are live.https://pages.github.com/

git clone https://github.com/tobeprozy/tobeprozyRecord.github.io.git

cd .\tobeprozyRecord.github.io\  

echo "Hello World" > index.html

git add --all

git commit -m "Initial commit"

git push -u origin main

3、Setting->pages->Branch

 

 好像要过一会才会显示这个网址,自己玩会去

 

 4、看效果

5、弄个模板看看

Complete List | Hugo Themeshttps://themes.gohugo.io/Jekyll Themesicon-default.png?t=M85Bhttp://jekyllthemes.org/page3/Themes | HexoHexo is a fast, simple & powerful blog framework powered by Node.js.https://hexo.io/themes/这个还不错

HCZ Materialicon-default.png?t=M85Bhttp://jekyllthemes.org/themes/hcz-jekyll-material/下载,拖进来

看效果

猜你喜欢

转载自blog.csdn.net/seek97/article/details/127106906