added: news, nav, footer
This commit is contained in:
12
templates/404.html
Normal file
12
templates/404.html
Normal 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
28
templates/base.html
Normal 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
14
templates/news.html
Normal 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 %}
|
Reference in New Issue
Block a user