Skip to content

charent/charent.github.io

Repository files navigation

charent-chen 的个人博客项目

  • 不定期更新,回复随缘
  • 一些博客是自己以前的笔记,技术可能比较老了,也一起般过来吧

项目使用方法:

安装hugo:

下载博客主题:

mkdir themes & cd themes
git clone --depth 1 https://github.com/CaiJimmy/hugo-theme-stack

撰写博客

  • 在目录/content/post/新建文件夹名称为博客标题,参考/content/post/模板/index.cn.md文件,撰写自己的markdown博客。

本地运行调试

  • 启动hugo服务:
# windows 
run.bat

# 或者
hugo server --theme=hugo-theme-stack --buildDrafts --bind=127.0.0.1 --baseURL=http://127.0.0.1 --port=8123

# linux
./run.sh

发布到githu.io

# windows
# 该脚本将生成静态文件到docs文件夹(需要在GitHub仓库中设置为docs)
build.bat

# 推送到github

git add .

git commit -m "your commit message"

git push

About

个人博客仓库。博客主页:https://charent.github.io/

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages