## Macro to render a plain listing with header (if available)
# macro render_monthlist(heading, posts)
# if heading:
${heading}
# else:
${heading}
# endif
# if not posts:
No blog posts.
# endif
# for name, version, time, author, title, body, categories in posts:
-
${title}
# if show_meta is undefined or show_meta:
-- Posted on ${pretty_dateinfo and pretty_dateinfo(time) or format_datetime(time)}
# if not blog_personal_blog:
: author ${authorinfo(author)}
# endif
# if categories:
: categories
# for cat in categories:
${cat}
# endfor
# endif
# endif
# endfor
# endmacro
{# Directly execute the macro on import if 'execute_blog_macro' is set.
For this not to throw errors it presumes variables to be called
already exists in the data dictionary.
#}
# if execute_blog_macro:
${render_monthlist(heading, posts)}
# endif