Index ¦ Archives ¦ Atom

Type of content in Pelican

11 October 2017

There is three types of content in Pelican : articles, pages and static content.

Page

In the content directory, pages are by convention stored in ./pages. But a content file (I use Markdown) in other directory will be parsed as well.

The template used by default for pages is page.html, but a different one can be set in the metadata of the page like this for a Markdown document

Template: template_name 

https://github.com/getpelican/pelican/blob/359ffcabb8534d6225ac579ed49fe20d5507507f/pelican/contents.py#L417

Article

https://github.com/getpelican/pelican/blob/359ffcabb8534d6225ac579ed49fe20d5507507f/pelican/contents.py#L424

Static

https://github.com/getpelican/pelican/blob/359ffcabb8534d6225ac579ed49fe20d5507507f/pelican/contents.py#L452