rfcs/templates/page.html

40 lines
972 B
HTML

{% extends "index.html" %}
{% block title %}
{% set title = page.title %}
{{ super() }}
{% endblock %}
{% block og %}
{% set title = page.title %}
{% set url = page.permalink %}
{% set description = page.summary %}
{{ super() }}
{% endblock %}
{% block main %}
<a href="{{ get_url(path="@/rfcs/_index.md") }}">&lt; back to list</a>
<h1>{% if page.extra.number %}RFC {{ page.extra.number }}: {% endif %}{{ page.title }}</h1>
{% if page.extra.author %}<p>Author: {{ page.extra.author }}</p>{% endif %}
{% if page.extra.status %}<p>Status: {{ page.extra.status }}</p>{% endif %}
{% if page.extra.updates %}
<br>
Updates:
{#{{ page.extra.updates | map(u => '<a href="#{u}">#{u}</a>') | join(', ') }} }}#}
<br>
{% endif %}
{% if page.extra.updated %}
Updated by:
{#{{ page.extra.updated-by | map(u => '<a href="#{u}">#{u}</a>') | join(', ') }} }}#}
<br>
{% endif %}
{{ rfctoc::new(headings=page.toc) }}
{{ page.content | safe }}
{% endblock %}