1

我不知道这些博客文章来自哪里。我在 Heroku 上运行 Jekyll,但不确定 /vendor/bundle 文件来自哪里。当我在本地运行站点时,这些不存在。站点是m2m.io,然后点击博客链接。相关代码片段:

<li class="thisBlog"><h4><span style="float:left;">18 May 2009 &nbsp; </span> &raquo; <a href="/vendor/bundle/ruby/1.9.1/gems/jekyll-0.11.0/test/source/2009/05/18/empty-tags.html"><div class="brand-color" style="float:left;">Some Tags</div></a></h4></li>

<li class="thisBlog"><h4><span style="float:left;">18 May 2009 &nbsp; </span> &raquo; <a href="/vendor/bundle/ruby/1.9.1/gems/jekyll-0.11.0/test/source/2009/05/18/empty-tag.html"><div class="brand-color" style="float:left;">A Tag</div></a></h4></li>

<li class="thisBlog"><h4><span style="float:left;">12 Mar 2009 &nbsp; </span> &raquo; <a href="/vendor/bundle/ruby/1.9.1/gems/jekyll-0.11.0/test/source/2009/03/12/hash-%231.html"><div class="brand-color" style="float:left;">Hash</div></a></h4></li>

<li class="thisBlog"><h4><span style="float:left;">27 Jan 2009 &nbsp; </span> &raquo; <a href="/vendor/bundle/ruby/1.9.1/gems/jekyll-0.11.0/test/source/2009/01/27/empty-category.html"><div class="brand-color" style="float:left;">Category in YAML</div></a></h4></li>

<li class="thisBlog"><h4><span style="float:left;">27 Jan 2009 &nbsp; </span> &raquo; <a href="/vendor/bundle/ruby/1.9.1/gems/jekyll-0.11.0/test/source/2009/01/27/empty-categories.html"><div class="brand-color" style="float:left;">Category in YAML</div></a></h4></li>
4

1 回答 1

3

add

exclude:  [ Gemfile, Gemfile.lock, Procfile, vendor, gems]

in your _config.yml

于 2012-08-16T13:57:59.830 回答