Tag: github pages

Jekyll错误“液体exception:nil的未定义方法`编码’:_layouts / post.html中的NilClass”

尝试运行jekyll build或jekyll serve时出现以下错误: Liquid Exception: undefined method ‘encoding’ for nil:NilClass in _layouts/post.html jekyll 2.5.3 | Error: undefined method ‘encoding’ for nil:NilClass 它看起来是RVM / ruby​​文件的问题? (请参阅下面的–trace日志)但我没有真正触及任何代码(特别是在任何ruby文件中没有)并且在最近几次提交中没有编辑’/_layouts/post.html’而这只是刚刚弹出起来。 这是Github上的存储库: https : //github.com/ryanstraits/ryanstraits.github.io ,虽然主分支在发生此错误之前的最后一次提交。 没有太多严肃的程序员,所以我有点困惑。 任何帮助都会很棒。 这是我运行jekyll build –trace : Liquid Exception: undefined method encoding’ for nil:NilClass in _layouts/post.html /Users/Straits/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/cgi/util.rb:8:inescape’: undefined method encoding’ for nil:NilClass (NoMethodError) from /Users/Straits/.rvm/gems/ruby-2.2.0/gems/jekyll-2.5.3/lib/jekyll/filters.rb:134:incgi_escape’ from […]

根据时间自动化Jekyll / Github Pages构建

我正在开展一个项目,我只列出当前日期(今天)的post。 让Github(或其他工具)每天午夜00:00重建网站会很棒。 谁能告诉我如何通过Github或任何其他工具完成这项工作? 特拉维斯CI也许? 任何教程或示例都会非常感激,因为我对此非常陌生。

jekyll-github-metadata中的SSL证书validation失败

当尝试在本地构建我的Github Pages站点时,jekyll-github-metadata插件导致SSL证书错误。 该网站在github页面上呈现没有问题,因此它必须是我的配置问题。 我知道这个问题 ,虽然它看起来并不完全相同(我没有安装gems,只使用github元数据插件)我将证书添加到我的环境变量,但它没有改变任何东西。 我需要更改哪些SSL证书才能正确validation? Appendicies 版本 Ruby:2.2.4(x86) 杰基尔:3.0.5 jekyll-github-metadata 1.11.1 错误消息 Liquid Exception: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed in _layouts/default.html jekyll 3.0.5 | Error: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed 堆栈跟踪 C:/Ruby22/lib/ruby/2.2.0/net/http.rb:923:in `connect’: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate […]

Github页面上的Jekyll部署格式不正确(没有样式)

首先,我想说我已经尝试了2个多小时试图纠正这个错误,但唉,我无法弄明白。 我也是Jekyll和Github Pages的新手。 但是,我能胜任代码,可以纠正任何错误。 当我去我的github页面寻找这个存储库时: 存储库链接2: https : //github.com/jeffward01/Conscience-Alchemy.git Github页面链接: https : //jeffward01.github.io/Conscience-Alchemy 没有应用格式化。 我知道/怀疑它在_config.yml文件中的base.url和/或url存在问题。 我尝试了14种组合,无法弄明白。 当我运行jekyll serve –baseurl它会运行并应用格式化/样式……但是,当我转到GitHub页面时,它不会…… 有没有人有任何提示/建议/答案? 谢谢!! 为方便起见,这是我的_config.yml文件: ` # Site settings title: Conscience Alchemy description: “A blog about Conscienceness and Alchemy” url: “http://jeffward01.github.io” author: name: “Jeff Ward” email: “conscience-alchemy@gmail.com” url: “http://jeffward01.github.io” baseurl: /Conscience-Alchemy # Build settings baseurl: /Conscience-Alchemy markdown: kramdown […]

Jekyll – 如何避免在YAML frontmatter markdownify项目上添加段落

好的……我有一个项目,我正在使用Jekyll进行播客项目。 我选择通过YAML Front Matter项列出所示内容中的主机: hosts: – Name A – Name B – Name C 使用这段代码 Hosts: {% for host in page.hosts %} {{ host }} {% endfor %} 我收到了正确的清单 Hosts: Name A Name B Name C 但是,我想通过这样做来降低这一点 Hosts: {% for host in page.hosts %} {{ host | markdownify }} {% endfor %} 但杰基尔回归: Hosts: Name […]

为github PROJECT页面配置Jekyll

我在这里结束了我的智慧。 我一直在试图查看我能找到的所有其他示例github项目页面,甚至是博客,但没有一个表现出我遇到的问题。 首先,我正在尝试为我的仓库创建一个项目页面。 我按照通常的教程,在我的项目仓库和推送中创建了一个gh-pages分支。 我设法做了这些并模板化我的文件。 我甚至设法使用HAML和SASS(它们仍然转换为html / css,这就是我推送到repo所以没有问题)。 我只是认为我正在配置我的jekyll错误。 首先,我没有看到在config.yml上使用baseurl或url的其他人页面中的任何配置。 我的问题是在我的post中循环: {% for post in site.posts %} {{ post.title }} {% endfor %} 它始终生成href为href=”/post-title” 我的_config.yml btw只有这个: permalink: /exercises/:title 单击链接时出现此问题,它始终指向http://corroded.github.com/exercises/title-其实应该是http://corroded.github.com/projectname/exercises/title-这里 我实际上尝试通过以下方式对路径进行硬编码: 这是有效的。 它转到post但是它显示为纯文本而不是生成的html。 我知道我在这里错过了一些非常简单的东西,但我似乎无法找到它,整个周末我一直在努力解决这个问题。 哦,我忘了添加:在我的localhost中执行此操作,我可以访问以下所有内容: http://localhost:4000/并点击链接将我带到http://localhost:4000/exercises/title-here和IT WORKS。 所以我很好地猜测它与配置有关。

Nanoc在github中部署页面时更改基本路径

我有一个简单的静态页面应用程序,我用nanoc构建,我想将其部署为github页面。 一切顺利,除了资产(如css,javascripts)和所有链接一般指向回购的根目录: 喜欢 /css/style.css 而不是 /docs/css/style.css 一切在localhost上运行良好但在发布时失败。 我正在使用rake发布将其推送到gh-pages。 这是我的Rakefile require ‘nanoc3/tasks’ BASE_URL = “http://darko1002001.github.com/docs/” desc “Compile the site” task :compile do `nanoc compile` end desc “Publish to http://documentation.getchute.com” task :publish => [:clean] do FileUtils.rm_r(‘output’) if File.exist?(‘output’) sh “nanoc compile” ENV[‘GIT_DIR’] = File.expand_path(`git rev-parse –git-dir`.chomp) old_sha = `git rev-parse refs/remotes/origin/gh-pages`.chomp Dir.chdir(‘output’) do ENV[‘GIT_INDEX_FILE’] = gif = […]

没有安装jekyll-paginate或其中一个依赖项

我已经安装了这个jekyll主题 。 但面临一个问题。 如果我做: bundle exec jekyll serve 一切正常( _site文件夹包含必要的文件和服务器正在运行),但如果我使用以下命令: jekyll build -d /var/www/budka/data/www/blog 我收到错误: 依赖性错误:哎呀! 看起来你没有安装jekyll-paginate或其中一个依赖项。 为了使用当前配置的Jekyll,您需要安装此gem。 来自Ruby的完整错误消息是:’无法加载此类文件 – jekyll-paginate’如果遇到麻烦,可以在http://jekyllrb.com/help/找到有用的资源! jekyll 3.1.1 | 错误:jekyll-paginate 我试图解决这个问题,但没有成功。 现在Gemfile文件包含: source ‘http://rubygems.org’ gem ‘github-pages’ gem ‘html-proofer’ gem “jekyll” gem ‘jekyll-paginate’ gem “pygments.rb” 安装了jekyll jekyll-paginate (1.1.0) gem,因为我在gem list commnad中看到它: *** LOCAL GEMS *** actionmailer (4.2.5) actionpack (4.2.5) actionpack-action_caching (1.1.1) […]

jekyll服务依赖错误 – 无法打开’lib curl’

我试图运行bundle exec jekyll serve但是它出现了错误: Dependency Error: Yikes! It looks like you don’t have jekyll-remote-theme or one of its dependencies installed. In order to use Jekyll as currently configured, you’ll need to install this gem. The full error message from Ruby is: ‘Could not open library ‘libcurl’: The specified module could not be found. . Could […]