clam/templates/page.html

26 lines
812 B
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="{% for _ in 1..self.numdir { %}../{% } %}style.css">
<title>{{ self.title }}</title>
</head>
<body>
<nav><a href="{% for _ in 1..self.numdir { %}../{% } %}.">home</a>{% if self.numdir > 1 { %}
/ <a href="..">up</a>
/ <a href=".">here</a>{% } %}</nav>
<h1>{{ self.title }}</h1>
%% if self.old_page {
<div class=box>this page was last updated over a year ago. facts and circumstances may have changed since.</div>
%% }
{{ Trusted(&self.body) }}
<footer>
<hr>
&copy; {{ self.created.year() }} <i>{{ self.author }}</i> and contributors.
last modified <time>{{ self.modified }}</time>.
generated from commit <code>{{ self.commit }}</code>.
</footer>
</body>
</html>