specifying layout for html posts in jekyll

折月煮酒 提交于 2020-06-29 11:10:51

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!