website/templates/base.html

70 lines
1.8 KiB
HTML
Raw Permalink Normal View History

2023-06-17 15:58:42 +02:00
<!DOCTYPE html>
<html lang="en">
<head>
<title>
{% block title %}
{% if current_path != "/" %}
{{ config.title }} &ndash;
{% if section.title %}
{{ section.title }}
{% elif page.title %}
{{ page.title }}
{% endif %}
{% else %}
{{ config.title }}
{% endif %}
{% endblock title %}
</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="/img/fr.ico">
2023-08-29 10:08:14 +02:00
<link rel="stylesheet" href="/general.css">
<link rel="stylesheet" href="/vars.css">
<link rel="stylesheet" href="/content.css">
<link rel="stylesheet" href="/style.css">
<link rel="stylesheet" href="/home.css">
2024-11-16 20:27:28 +01:00
<script defer src="https://analytics.fofrweb.com/script.js" data-website-id="2b326fdd-6c87-4627-b1f1-d0afb40aeef6"></script>
2023-08-29 10:08:14 +02:00
{% block styles %}
2023-09-20 17:03:40 +02:00
{% endblock styles %}
2024-09-11 19:55:36 +02:00
<script defer data-domain="filiprojek.cz" src="https://analytics.fofrweb.com/js/script.js"></script>
2023-06-17 15:58:42 +02:00
</head>
<body>
<header>
<nav>
<a href="/" class="logo">
<img src="/img/fr_logo.webp" alt="logo">
</a>
2024-03-24 11:57:34 +01:00
<!--<div class="links">
2023-06-17 15:58:42 +02:00
{% for item in config.extra.nav_items %}
<a href="{{ item.path }}"
{% if item.path == current_path and item.path != "/" %}
class="active"
{% endif %}
>{{ item.name }}</a>
{% endfor %}
2024-03-24 11:57:34 +01:00
</div>-->
2023-06-17 15:58:42 +02:00
</nav>
</header>
<main>
{% block content %}
<section>
{% if section %}
{{ section.content | safe }}
{% elif page %}
{{ page.content | safe }}
{% endif %}
</section>
{% endblock content %}
</main>
<footer>
{% if config.extra.git %}
2024-05-22 19:21:40 +02:00
<a href="{{ config.extra.git }}" target="_blank">Source</a>
2023-06-17 15:58:42 +02:00
{% endif %}</p>
2023-11-19 00:56:48 +01:00
<p>&copy; filiprojek.cz 2022 - {{ now() | date(format="%Y")}}</p>
2023-06-17 15:58:42 +02:00
</footer>
2023-08-29 10:08:14 +02:00
2023-06-17 15:58:42 +02:00
</body>
</html>