美文网首页
jekyll遇到的一些问题

jekyll遇到的一些问题

作者: 叫我大欧就好 | 来源:发表于2019-06-27 14:49 被阅读0次

    gem sources install失败

    多运行几次就行了gem sources install

    本地预览使用中文文件名

    找到ruby安装路径
    如:\Ruby22-x64\lib\ruby\2.2.0\webrick\httpservlet\filehandler.rb
    找到下列两处,添加一句(+的一行为添加部分)
    1、

    path = req.path_info.dup.force_encoding(Encoding.find("filesystem"))
    + path.force_encoding("UTF-8") # 加入编码
    if trailing_pathsep?(req.path_info)
    

    2、

    break if base == "/"
    + base.force_encoding("UTF-8") #加入編碼
    break unless File.directory?(File.expand_path(res.filename + base))
    

    相关文章

      网友评论

          本文标题:jekyll遇到的一些问题

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