1
0

added: news, nav, footer

This commit is contained in:
2023-11-19 00:19:59 +01:00
parent 984d8a3d47
commit 136f83f80a
10 changed files with 117 additions and 1 deletions

12
templates/404.html Normal file
View File

@ -0,0 +1,12 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title></title>
</head>
<body>
<h1>404 - Stránka nenalezena</h1>
<a href="/">Zpět na ples</a>
</body>
</html>

28
templates/base.html Normal file
View File

@ -0,0 +1,28 @@
<!DOCTYPE html>
<html lang="cs">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="/header.css">
<link rel="stylesheet" href="/footer.css">
</head>
<body>
<nav>
<a href="/">Domů</a>
<a href="/fotoarchiv">Fotoarchiv</a>
<a href="/webarchiv">Webarchiv</a>
</nav>
<section id="news">
{% block news %} {% endblock %}
</section>
<footer>
<a href="https://www.fofrweb.com/" target="_blank">Vytvořeno týmem Fofrweb</a>
</footer>
</body>
</html>

14
templates/news.html Normal file
View File

@ -0,0 +1,14 @@
{% extends "base.html" %}
{% block news %}
<h1>Novinky</h1>
<h2>Co se děje kolem našeho plesu?</h2>
{% for page in section.pages %}
<article>
<p>{{ page.date }}</p>
<p>Autor: {{ page.extra["author"] }}</p>
<h3>{{ page.title }}</h3>
{{ page.content | safe }}
</article>
<hr>
{% endfor %}
{% endblock news %}