我想要一个模板"_layouts/template1.html"扩展(Django风格)模板_layouts/default.html.
我把它作为YAML前面的事情放在_layouts/template1.html中
---
layout: default
---
{{page.content}}
Run Code Online (Sandbox Code Playgroud)
但显然它不能像我希望的那样工作(所有附加的标记都存在于template1.html中,但不是在default.html中不会渲染).看起来使用template1布局的文件纯粹扩展了default.html.
有没有办法在Jekyll中进行布局继承?