jnordberg / wintersmith

A flexible static site generator
http://wintersmith.io/
MIT License
3.5k stars 332 forks source link

Any example without paginator stuff? #307

Closed ibc closed 8 years ago

ibc commented 8 years ago

Sure I'm missing something. I just have some markdown files in content dir:

content/
    index.md
    api.md
    about.md

templates/
    layout.jade

All the .md files have metadata with template: layout.jade. Now, what should I place in layout.jade so the content of each .md file (once converted to HTML) is inserted into a specific div.content section of the template?

For those who don't know Jade (yet) the example/skeleton generated by wintersmith new foo is too hard to understand.

ibc commented 8 years ago

I think I was looking for the page variable which AFAIU represents the content page being rendered.

I assume this is more a Jade specific question so I should not be asking here. Sorry.