Ruby 杰基尔没有表现出任何内容

Ruby 杰基尔没有表现出任何内容,ruby,jekyll,Ruby,Jekyll,我正在用Jekyll开发一个博客。当我使用命令jekyll运行服务器时,不会生成内容 以下是终端中显示的内容: WARN无法确定响应正文的内容长度。设置响应的内容长度或设置响应#chunked=true index.html 我使用了默认的Jekyll样板文件 layout: default {% for post in paginator.posts %} <article> <header class="entry-header">

我正在用Jekyll开发一个博客。当我使用命令
jekyll
运行服务器时,不会生成内容

以下是终端中显示的内容:

WARN无法确定响应正文的内容长度。设置响应的内容长度或设置响应#chunked=true

index.html 我使用了默认的Jekyll样板文件

layout: default

{% for post in paginator.posts %}
<article>

  <header class="entry-header">
    <h2 class="entry-title"><a href="{{ post.url }}" title="{{ post.title }}" rel="bookmark">{{ post.title }}</a></h2>
  </header>

  <aside class="entry-details">
    <p class="entry-date">Publicado em: <a href="{{ post.url }}">{{ post.date | date: "%d/%m/%y" }}</a></p>
  </aside>

  <div class="entry-content">
      {{ post.content }}
  </div>

</article>
{% endfor %}
布局:默认设置
{paginator.posts%中的post为%s}

{{post.content}} {%endfor%}
post.html 标准也是

layout: default

<article>

  <header class="entry-header">
    <h2 class="entry-title"><a href="{{ page.url }}" title="{{ page.title }}" rel="bookmark">{{ page.title }}</a></h2>
  </header>

  <aside class="entry-details">
    <a href="{{ page.url }}" class="entry-date">{{ page.date | date: "%d/%m/%y" }}</a>
  </aside>

  <div class="entry-content clearfix">
    {{ post.content }}
  </div>

  <footer class="entry-meta">
    {% include disqus.html %}
  </footer>

</article>
<!doctype html>
<html lang="pt-BR">
<head>
  {% include head.html %}
</head>

<body class="home blog">

  {% include header.html %}

  <div id="content">
    {{ content }}
  </div><!-- end #content -->

  {% include footer.html %}

</body>
</html>
布局:默认设置
{{post.content}}
{%include discs.html%}
default.html 标准也是

layout: default

<article>

  <header class="entry-header">
    <h2 class="entry-title"><a href="{{ page.url }}" title="{{ page.title }}" rel="bookmark">{{ page.title }}</a></h2>
  </header>

  <aside class="entry-details">
    <a href="{{ page.url }}" class="entry-date">{{ page.date | date: "%d/%m/%y" }}</a>
  </aside>

  <div class="entry-content clearfix">
    {{ post.content }}
  </div>

  <footer class="entry-meta">
    {% include disqus.html %}
  </footer>

</article>
<!doctype html>
<html lang="pt-BR">
<head>
  {% include head.html %}
</head>

<body class="home blog">

  {% include header.html %}

  <div id="content">
    {{ content }}
  </div><!-- end #content -->

  {% include footer.html %}

</body>
</html>

{%include head.html%}
{%include header.html%}
{{content}}
{%include footer.html%}
我使用这三个文件创建了一个。我使用jekyll2.1.1运行了
jekyllservice
jekyll--server
已被弃用并替换为此命令),并且没有收到任何错误(尽管由于yaml前端的问题,jekyll确实忽略了液体语法)

我觉得这个问题与(Jekyll的默认服务器)有关


我知道YAML前端的内容缺少
--
,我没有
\u posts
目录,尽管我假设这个问题是无关的。

不是正在生成
\u sites
目录吗?您试图使用什么命令,
jekyll--server
?嗯,目录没有生成
\u site
。当我在HTML中进行更改时,它们不会生成。是的,我使用的是
jekyll--server
。试试
jekyll build
,这会生成
\u站点
文件夹吗?