website/templates/base.html
Vitaly Zdanevich 45842cefd4 Migrate to Zola, add meta tags and dark theme support
Signed-off-by: Vitaly Zdanevich <zdanevich.vitaly@ya.ru>
Signed-off-by: Alexander Borsuk <me@alex.bio>
2021-07-01 18:03:30 +02:00

59 lines
1.7 KiB
HTML

{%- if page %}
{%- set resource = page %}
{%- elif section %}
{%- set resource = section %}
{%- endif %}
<!DOCTYPE html>
<html lang='en'>
<head>
<meta charset='utf-8'>
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'>
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover'>
<meta name='description' content='{{ resource.description }}'>
<meta property='og:image' content='{{ get_url(path="images/screenshots/prague.jpg") }}'>
<meta name='twitter:card' content='summary_large_image'>
<meta name='twitter:title' content='{{ resource.title }}'>
<meta name='twitter:description' content='Fast detailed offline maps, based on OpenStreetMap and curated with love by MapsWithMe founders.'>
<meta name='apple-itunes-app' content='app-id=1567437057'>
<meta name='wikidata' content='Q107078602'>
<link href='/main.css' rel='stylesheet' type='text/css'>
<title>{{ resource.title }}</title>
</head>
<body>
<header>
<!-- TODO: Menu -->
</header>
<main>
{% block content %} {% endblock %}
</main>
<footer>
{% if resource.path != '/privacy/' %}
<a href='/privacy/'>
{% endif %}
<span>Privacy policy</span>
{% if resource.path != '/privacy/' %}
</a>{% endif %}
&nbsp;
{% if resource.path != '/terms/' %}<a href='/terms/'>{% endif %}
<span>Terms</span>
{% if resource.path != '/terms/' %}
</a>{% endif %}
<p>
<span>© 2021 <a href='mailto:legal@organicmaps.app'>Organic Maps OÜ</a>, reg. code 16225385</span>
<span>Harju maakond, Tallinn, Kristiine linnaosa, A. H. Tammsaare tee 47, 11316, Estonia</span>
</p>
</footer>
</body>
</html>