github pages main index.html中未处理jekyll液体指令;我错过了什么?
新手问题。我正在尝试开始使用github页面和Jekyll,通过文档进行工作。我做到了这一点:我想我应该将Liquid指令直接放入我的主index.html,但它们不会得到处理。相反,他们只是一字不差地说出来: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 %} <
<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