Skip to content

including a template into a Page #3076

Answered by mpounsett
mpounsett asked this question in Q&A
Discussion options

You must be logged in to vote

After a bit more poking, I think I have found The Way This is Supposed to Be Done: TEMPLATE_PAGES.

The documentation as-written leads to some uncertainty about how to set this up though, and the default configuration leads to some misleading errors... so here's what I ended up doing to make this work:

  1. Make sure that both ARTICLE_PATHS and PAGE_PATHS are set to search a directory under PATH, and are not empty variables.

    If either are left blank then Pelican will find the not-RST-nor-MD files referenced by TEMPLATE_PAGES and there will be errors about missing document headers (like title). By default, PAGE_PATHS is set but ARTICLE_PATHS is empty. For example:

    ARTICLE_PATHS = ['articles']
    P…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by mpounsett
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants