美文网首页
Jeklly&MacOS&Github搭建个人主页

Jeklly&MacOS&Github搭建个人主页

作者: 蠢3努力好记性 | 来源:发表于2020-06-01 14:29 被阅读0次

    Github创建主页仓库

    Upload上传Theme文件(via Web)

    Github Desktop 连接仓库并使用VScode进行开发

    Netlify

    https://app.netlify.com/为Web应用程序和静态网站提供托管和无服务器后端服务

    实现每次commit到仓库都会自动运行起来
    Note:出现报错 Github无法处理非默认组件
    GitHub Pages failed to build your site.
    The tag tags_list on line 15 in _includes/footer.html is not a recognized Liquid tag.
    

    安装运行流程

    Jekyll requires all dependencies to be saved in the Gemfile---运行Gemfile安装所需依赖

    aishan@AishanLiudeMacBook-Pro ~ % cd /Users/aishan/Downloads/barber-jekyll-master 
    aishan@AishanLiudeMacBook-Pro barber-jekyll-master % bundle install
    # ERROR:Could not find 'bundler' (2.1.2) required by your #/Users/aishan/Downloads/barber-jekyll-master/Gemfile.lock. (Gem::GemNotFoundException)
    #To update to the latest version installed on your system, run `bundle update --bundler`.
    #To install the missing version, run `gem install bundler:2.1.2`
    aishan@AishanLiudeMacBook-Pro barber-jekyll-master % sudo gem install bundler
    
    ERROR:

    An error occurred while installing eventmachine (1.2.7), and Bundler cannot continue.
    Make sure that gem install eventmachine -v '1.2.7' --source 'https://rubygems.org/' succeeds before bundling.

    Solution:

    下载xcode

    sudo xcodebuild -license accept
    sudo gem install eventmachine
    sudo bundle install
    

    至此bundle安装好Template所需的组件🎉

    参考链接

    ERROR处理
    https://qiita.com/gremito/items/2988041b35e29e373271

    Jeklly搭建github.io
    https://www.cnblogs.com/wxyww/p/xiaoshujiang.html

    相关文章

      网友评论

          本文标题:Jeklly&MacOS&Github搭建个人主页

          本文链接:https://www.haomeiwen.com/subject/fpgjzhtx.html