问题
I am writing my posts in jekyll in html. I cannot seem to figure out how to specify layout fro the post. What is the html equivalent of this markdown header
---
layout: post
---
回答1:
You do the same thing in HTML files (and any files) to specify a layout to use.
回答2:
The layout refers to the HTML templates stored under _layouts
in your Jekyll directory structure.
If you want to use different layouts for different types of post then you need to create multiple templates in _layouts
.
来源:https://stackoverflow.com/questions/18598159/specifying-layout-for-html-posts-in-jekyll