From 5a05ca47edca3a5cf8fad2e19a533faaa1c7b362 Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Fri, 2 Jan 2026 15:16:23 +0200 Subject: Implement now page --- templates/now.html | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 templates/now.html (limited to 'templates/now.html') diff --git a/templates/now.html b/templates/now.html new file mode 100644 index 0000000..9eaa6a6 --- /dev/null +++ b/templates/now.html @@ -0,0 +1,10 @@ +{% extends "base.html" %} +{% import "macros.html" as macros %} + +{% block content %} +{% set posts = get_section(path="posts/_index.md") %} +{% set nows = posts.pages | filter(attribute="extra.kind", value="now") %} +{% set latest_now = nows | sort(attribute="date") | last %} + +{{ macros::page_content(page=latest_now) }} +{% endblock %} -- cgit v1.3