diff --git a/docs/content/documentation/templates/archive.md b/docs/content/documentation/templates/archive.md new file mode 100644 index 0000000..cf04c06 --- /dev/null +++ b/docs/content/documentation/templates/archive.md @@ -0,0 +1,23 @@ ++++ +title = "Archive" +weight = 90 ++++ + +Gutenberg doesn't have a built-in way to display an archive page, a page showing +all post titles ordered by year. However, this can be accomplished directly in the templates: + +```jinja2 +{% for year, posts in section.pages | group_by(attribute="year") %} +