schickmacher/schickmacher/templates/renderer/rendered.html

39 lines
976 B
HTML

{% load extra_filters %}{% load static compress tz %}<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>{{ title }}</title>
{% compress css %}
<link type="text/x-scss" href="{% static 'sass/render.scss' %}" rel="stylesheet">
<link href="{% static 'css/pygmentize.css' %}" rel="stylesheet">
{% endcompress %}
<link href="https://fonts.googleapis.com/icon?family=Material+Icons|Material+Icons+Outlined" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro&display=swap" rel="stylesheet">
</head>
<style>
@page{
@top-right {
content: "{{ date | date:'d.m.Y' }}";
}
@top-left {
content: "{{ title | escape_css_content | safe }}"
}
@top-right-corner {
}
}
</style>
<body>
<div class="container">
{% if show_title %}
<div class="header">
<h1>{{ title }}</h1>
</div>
{% endif %}
<div class="document">
{{ content | safe }}
</div>
</div>
</body>
</html>