jekyll搭建与写作

安装基本环境

windows 10下

搭建并推送到github

  • 在当前路径下新建jekyll的blog
    jekyll new jekyll
    cd ./jekyll
    git init#初始化本地仓库
  • 在github上新建一个名为jekyll的项目
    git remote add origin git@github.com:kunode/jekyll #本地添加远程仓库,前提是已经设置好了ssh的key
    jekyll build#Builds the site and outputs a static site to a directory called _site
    bundle add webrick #出现错误后在当前项目路径下安装webrick(/servlet.rb:3:in require': cannot load such file -- webrick (LoadError)) jekyll server#Doesjekyll buildand runs it on a local web server athttp://localhost:4000`, rebuilding the site any time you make a change.
  • 上传
    git add .
    git commit
    git push -u origin master

发布

  • git push完成后在Vercel里直接使用上述GitHub的仓库新建项目即可。可自定义域名

插件及设置

写作