File: page.html

package info (click to toggle)
pygobject 3.56.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,744 kB
  • sloc: ansic: 39,473; python: 26,930; sh: 114; makefile: 81; xml: 35; cpp: 1
file content (17 lines) | stat: -rw-r--r-- 532 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{% extends "layout.html" %}

{% block body %}
  {% if meta is defined and meta and (meta.get("date") or meta.get("author")) %}
    {% set page_date = meta.get("date") %}
    {% set page_author = meta.get("author") %}
    {% set byline %}
<p class="page-docinfo-meta">
  {% if page_date %}{{ page_date }}{% endif %}
  {% if page_author %}{% if page_date %} ยท {% endif %}{{ page_author }}{% endif %}
</p>
    {% endset %}
    {{ body | replace("</h1>", "</h1>" ~ byline, 1) }}
  {% else %}
    {{ body }}
  {% endif %}
{% endblock %}