Pelican: How to define the layout of each page similar to Jekyll?

1

I use Jekyll in my website / a>, I'll stop using that reason . I wanted to migrate to the Pelican but caught up with the layouts. The problem is this:

In Jekyll I can on each page define the layout, or rather tell (point) what the layout will be, eg:

foo1.md
---
layout: modelo-a
---

foo2.md
---
layout: modelo-b
---

foo3.md
---
layout: modelo-c
---

I did not figure out how to do this in Pelican, does anyone know how?

That configuration variable TEMPLATE_PAGES ...

TEMPLATE_PAGES = {'src/books.html': 'dest/books.html',
              'src/resume.html': 'dest/resume.html',
              'src/contact.html': 'dest/contact.html'}

... it does not serve me because I have more than 100 pages and the number is growing, imagine what the business would be like!

    
asked by anonymous 18.09.2014 / 21:32

1 answer

1

The page template can be chosen along with the rest of the page metadata, type:

Title: Meu Artigo
Date: 2014-09-18 10:20
Modified: 2014-09-18 18:40
Tags: opiniao, tecnologia
Category: artigos
Slug: meu-artigo
Authors: Flavio Micheletti
Summary: Como especificar o template em cada página do Pelican
Template: modelo-a

Para escolher o template em cada página você precisa...
    
19.09.2014 / 02:11