From 316e1680fb8f0253b68666451a7c2929484edd17 Mon Sep 17 00:00:00 2001 From: Thib Date: Thu, 22 May 2025 10:01:00 +0200 Subject: [PATCH] Lightweight archive page Lightweight alternative to #2636 to let people Ctrl-F through the post titles Signed-off-by: Thib --- content/archive.md | 9 +++++++++ templates/blog-archive.html | 13 +++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 content/archive.md create mode 100644 templates/blog-archive.html diff --git a/content/archive.md b/content/archive.md new file mode 100644 index 000000000..6bf56ed4c --- /dev/null +++ b/content/archive.md @@ -0,0 +1,9 @@ ++++ +title = "Blog Archive" +template = "blog-archive.html" +extra.meta_description = """ +The Matrix.org Foundation blog is where the Matrix.org Foundation and Community +post updates on their activity. Every Friday evening they publish This Week In +Matrix, a digest of the past week activity. +""" ++++ diff --git a/templates/blog-archive.html b/templates/blog-archive.html new file mode 100644 index 000000000..de3311401 --- /dev/null +++ b/templates/blog-archive.html @@ -0,0 +1,13 @@ +{% extends "page.html" %} +{% block content %} +{% set section = get_section(path="blog/_index.md") %} +{% set pages = section.pages | sort(attribute="date") | reverse %} +
+

Blog Archive

+
    + {% for page in pages %} +
  • {{ page.date | date }} — {{ page.title }}
  • + {% endfor %} +
+
+{% endblock content %}