Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/amazon-s3/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
github pages main index.html中未处理jekyll液体指令;我错过了什么?_Jekyll_Liquid_Github Pages - Fatal编程技术网

github pages main index.html中未处理jekyll液体指令;我错过了什么?

github pages main index.html中未处理jekyll液体指令;我错过了什么?,jekyll,liquid,github-pages,Jekyll,Liquid,Github Pages,新手问题。我正在尝试开始使用github页面和Jekyll,通过文档进行工作。我做到了这一点:我想我应该将Liquid指令直接放入我的主index.html,但它们不会得到处理。相反,他们只是一字不差地说出来: <ul> {% for post in site.posts %} <li><a href="{{ post.url }}">{{ post.title }}</a></li> {% endfor %} <

新手问题。我正在尝试开始使用github页面和Jekyll,通过文档进行工作。我做到了这一点:我想我应该将Liquid指令直接放入我的主index.html,但它们不会得到处理。相反,他们只是一字不差地说出来:

<ul>
  {% for post in site.posts %}
    <li><a href="{{ post.url }}">{{ post.title }}</a></li>
  {% endfor %}
</ul>
Gemfile:

source 'https://rubygems.org'

require 'json'
require 'open-uri'
versions = JSON.parse(open('https://pages.github.com/versions.json').read)

gem 'github-pages', versions['github-pages']
我已经运行了
bundle安装
bundle更新
。我确实有一个职位

bundle exec-jekyll-serve
一切正常,除了以下错误/警告:

Configuration file: none
我错过了什么


(谢谢。)

好的,那么。。。事实证明,您只需在index.html中添加“front matter”即可触发Jekyll()对其进行处理。最简单的前面是两行三个破折号,这对我很有用


进入下一个障碍

你的
index.html
有问题吗?答对了!谢谢你,Matt&Stack Overflow。
Configuration file: none