poole / tests / expected / input /

menu-position: 10

Poole has basic blog support. If an input page's file name has a structure like, e.g., Poole recognizes the date and post title and sets them as attributes of the page. These attributes can then be used to generate a list of blog posts:

<!--% from datetime import datetime posts = [p for p in pages if "post" in p] # get all blog post pages posts.sort(key=lambda p: p.get("date"), reverse=True) # sort post pages by date for p in posts: date = datetime.strptime(, "%Y-%m-%d").strftime("%B %d, %Y") print(" * %s - %s" % (, p.url, date)) # markdown list item %-->

Have a look into input/ to see how it works. Feel free to adjust it to your needs.