gardenserver/templates/main.html
2020-12-28 20:17:29 +01:00

58 lines
No EOL
1.9 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>{{garden_title}} - {{page_title}}</title>
<link href="https://necolas.github.io/normalize.css/8.0.1/normalize.css" rel="stylesheet">
<link
href="https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,400;0,700;1,400;1,700&family=Montserrat&display=swap"
rel="stylesheet">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta property="og:site_name" content="{{garden_title}}" />
<meta property="og:title" content="{{page_title}}" />
<meta property="og:description" content="{{content | striptags | truncate(length=256)}}" />
<meta property="og:type" content="article" />
<meta property="og:url" content="https://{{server_name}}/{{path}}" />
<meta property="og:image" content="/static/favicon.png" />
<link rel="shortcut icon" href="/static/favicon.png" type="image/x-icon">
<link href="/static/main.css" rel="stylesheet">
</head>
<body>
<aside>
<nav>
<h1><a href="/">{{garden_title}}</a></h1>
<ul>
{% for file in files %}
<li class="{% if file is containing(".md") %}page{% else %}file{% endif %}">
<a href="/{{file}}">{{file | trim_end_matches(pat=".md")}}</a>
</li>
{% endfor %}
</ul>
</nav>
<footer><a href="https://gitlab.com/tmladek/gardenserver">gardenserver {{version}}</a></footer>
</aside>
<main>
{{content | safe}}
<hr>
{% if backlinks %}
<h1>Linked from:</h1>
<ul>
{% for link in backlinks %}
<li><a href="/{{ link }}">{{link}}</a></li>
{% endfor %}
</ul>
{% endif %}
{% if mtime %}
<footer>
Last modified at {{mtime}}
</footer>
{% endif %}
</main>
</body>
</html>