我有一个多站点 Jekyll 项目,每个站点都有文件夹slc
,la
.
但是,我的 YAML Front Matter 默认值不起作用。没有任何默认值 - 包括布局,至关重要 - 被传输到我的模板:
//config.yml:
defaults:
-
scope:
path: "la"
values:
layout: "default-la"
title: "Store Title"
email: "email@gmail.com"
baseurl: "" # the subpath of your site, e.g. /blog/
url: "http://url.com"
// 文件夹结构
├───assets
│ ├───images
│ └───js
├───css
│ ├───bootstrap
│ │ ├───css
│ │ ├───img
│ │ └───js
│ └───font
├───la
│ ├───assets
│ │ └───images
│ └───css
│ └───css
│ ├───bootstrap
│ │ ├───css
│ │ ├───img
│ │ └───js
│ └───font
├───slc
├───vendor
│ └───js
├───_includes
├───_layouts
├───_sass
// _layouts/default-la.html
<!DOCTYPE html>
<html>
{% include head.html %}
<body>
{% include header-la.html %}
<div class="page-content">
<div class="wrapper">
{% include menu-la.html %}
{{ content }}
</div>
</div>
{% include js.html %}
{% include footer-la.html %}
</body>
</html>
//la/index.html
<div class="home">
STUFF
</div>