{% extends "base-en.html" %} {% import "blog_macros.html" as blog_macros %} {% block content %}

filed under: {{ blog_macros::category_listing(page=page, language="en", base_url="/category/", none_description="no categories, how unique") }}

It's a bit unfortunate that this sort of metadata cannot easily be rendered under the document heading without falling to the bottom of the page after all content. Not being able to massage the content itself is more pure, but the page title is kind of special. What to do?

{{ content | safe }}

This is a blog entry from {{ page.meta.created_at | default(value="sometime") }}. All of them here:

{# the default logic above and in the listing are not very useful because the sort would explode if any page wouldn't have the meta.created_at attribute... #} {% set blog_entries = site.groups["blog"].pages | filter(attribute="meta.language", value="en") | sort(attribute="title") | sort(attribute="meta.created_at") %}

entry before the current one: {% set prev_page = blog_entries | before_attr(attribute="url", value=page.url) %} {%- if prev_page %}{{ prev_page.title }} {%- else %}(this is the first one) {%- endif %}

entry after the current one: {% set next_page = blog_entries | after_attr(attribute="url", value=page.url) %} {%- if next_page %}{{ next_page.title }} {%- else %}(this is the last one) {%- endif %}

{% endblock content %}