mirror of
https://github.com/matrix-org/matrix.org.git
synced 2026-01-11 20:07:22 +00:00
* Lightweight archive page Lightweight alternative to #2636 to let people Ctrl-F through the post titles Signed-off-by: Thib <thib@ergaster.org> * Move blog archive page to /blog/archive The archive page is a "virtual" blog post dated to 1970, so that it is sorted at the end of any list. Inside the lists the page is ignord. Signed-off-by: weeman <weeman@frankfurt.ccc.de> * Add /blog/archive to the main navigation. Signed-off-by: weeman <weeman@frankfurt.ccc.de> --------- Signed-off-by: Thib <thib@ergaster.org> Signed-off-by: weeman <weeman@frankfurt.ccc.de> Co-authored-by: Thib <thib@ergaster.org>
46 lines
1.7 KiB
HTML
46 lines
1.7 KiB
HTML
{% extends "section.html" %}
|
|
{% block content -%}
|
|
<div class="content">
|
|
{% for page in paginator.pages %}
|
|
{% if page.extra.hide_from_blog %}
|
|
{% continue %}
|
|
{% endif %}
|
|
<article class="post">
|
|
<header>
|
|
<h1><a href="{{ page.permalink }}" title="{{ page.title }}">{{ page.title }}</a></h1>
|
|
<span>
|
|
{{ page.date | date(format="%Y-%m-%d") }}
|
|
{% if page.taxonomies.category -%}
|
|
—
|
|
{% for category in page.taxonomies.category | sort %}
|
|
<a href="/category/{{ category | slugify }}">
|
|
{{- category -}}
|
|
</a>
|
|
{%- if not loop.last %}, {% endif %}{% endfor %}
|
|
{% endif %}
|
|
—
|
|
{% for author in page.taxonomies.author %}
|
|
<a href="/author/{{ author | default(value=['unknown author']) | slugify }}">
|
|
{{- author | default(value=["unknown author"]) -}}
|
|
</a>
|
|
{%- if not loop.last %}, {% endif %}
|
|
{% endfor %}
|
|
</span>
|
|
{% if page.updated -%}
|
|
<br>
|
|
<small>Last update: {{ page.updated | date(format="%Y-%m-%d %H:%M") }}</small>
|
|
{%- endif %}
|
|
</header>
|
|
<div>
|
|
{% if page.summary -%}
|
|
{{ page.summary | safe }}
|
|
<p><a href="{{ page.path | safe }}#continue-reading">Continue reading…</a></p>
|
|
{% else -%}
|
|
{{ page.content | safe }}
|
|
{%- endif %}
|
|
</div>
|
|
</article>
|
|
{% endfor %}
|
|
{% include "includes/pagination.html" %}
|
|
</div>
|
|
{%- endblock content %}
|