这就是做什么布局。
你/index.html
页面将使用home.html
模板
你posts
将使用post.html
那么default.html
模板
的index.html
---
layout: home
...
---
your content here
_layouts/home.html做为
个
<!DOCTYPE html>
<html>
{% include head.html %}
<body>
{% include menu-a.html %} <----------LOADING Menu a
<div class="page-content">
<div class="wrapper">
{{ content }}
</div>
</div>
{% include footer.html %}
</body>
</html>
_layouts/default.html中
<!DOCTYPE html>
<html>
{% include head.html %}
<body>
{% include menu-b.html %} <----------LOADING Menu b
<div class="page-content">
<div class="wrapper">
{{ content }}
</div>
</div>
{% include footer.html %}
</body>
</html>
啊! [facepalm],是的!如此简单的工作。谢谢。 – Nsokyi