In Jekyll, I have created a layout file dev.html which is already using some other layout: default but that is not important.
dev.html
---
layout: default
title: Developer
---
<div>
{{ want to include page1.md }}
</div>
<div>
{{ want to include page2.md }}
</div>
Now, I have those 2 markdown pages which I need to include somehow in dev.html file. How can I do that? I have tried using variable {{content}} but that would include both pages at once in the dev.html file.
page1.md
---
layout: dev
---
page1 file content in markdown...
page2.md
---
layout: dev
---
page2 file content in markdown...
.mdfiles but don't know how to use those variables.