我想在 post 上包含 html 文件!但是 Liquid 说 "Could not locate the included file."

I wanna include html file on post! But Liquid say "Could not locate the included file."

我想在 post 上包含一些 HTML 文件!
我想在我的博客右侧显示一个参考。
参考是 HTML 文件,它看起来像简单的文档。

所以我创建了布局文件 jekyll.html 并写了一个标签 <div>.
然后我向 post 添加了一个 header 变量,参考文件位于 _layouts.

这是jekyll.html中的代码:

<div class="right">
  {% for ref in page.refs %}
    {% include ref %}
  {% endfor %}
</div>

以及此代码 post 的 YAML header。

---
layout: jekyll
title:  "02. "
date:   2018-12-30 14:38:42 +0900
category: Jekyll
refs: [ bundler.html, test.html ]
---

所以,Liquid 说:

Liquid Exception: Could not locate the included file 'ref' in any of ["E:/Projects/Jekyll/_includes"]. Ensure it exists in one of those directories and, if it is a symlink, does not point outside your site source. in /_layouts/jekyll.html

怎么了?我做错了什么吗?
或者有别的办法吗?

如果你想在 include 标签中使用 liquid 变量,你必须用大括号括起来:

{% include {{ ref }} %}