forked from em/receptty.org
		
	Změna závislostí šablon na base.html
This commit is contained in:
		
							
								
								
									
										28
									
								
								templates/base.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										28
									
								
								templates/base.html
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,28 @@
 | 
				
			|||||||
 | 
					{% import "macros.html" as macro %}
 | 
				
			||||||
 | 
					<!DOCTYPE html>
 | 
				
			||||||
 | 
					<html lang="en">
 | 
				
			||||||
 | 
					<head>
 | 
				
			||||||
 | 
						<meta charset="UTF-8">
 | 
				
			||||||
 | 
						<meta name="viewport" content="width=device-width, initial-scale=1.0">
 | 
				
			||||||
 | 
						<title>{% block title %}{{ config.title }}{% endblock title %}</title>
 | 
				
			||||||
 | 
						<link rel="stylesheet" href="{{ get_url(path="/style.css") }}" type="text/css">
 | 
				
			||||||
 | 
						<link rel="stylesheet" href="{{ get_url(path="/icons.css") }}" type="text/css">
 | 
				
			||||||
 | 
					</head>
 | 
				
			||||||
 | 
					<body>
 | 
				
			||||||
 | 
						<nav>
 | 
				
			||||||
 | 
							<div class="mainnav">
 | 
				
			||||||
 | 
								<h1><a href="/">Recepty na cesty</a></h1>
 | 
				
			||||||
 | 
								<ul>
 | 
				
			||||||
 | 
									<li><a href="/vyhledavani/" title="Vyhledávání"><span class="icon-search"></span></a></li>
 | 
				
			||||||
 | 
									<!-- <li><a href="/info/"><span class="icon-info"></span></a></li> -->
 | 
				
			||||||
 | 
									<li><a href="{{ config.extra.git }}" title="Git"><span class="icon-git"></span></a></li>
 | 
				
			||||||
 | 
								</ul>
 | 
				
			||||||
 | 
							</div>
 | 
				
			||||||
 | 
							<div class="subnav">
 | 
				
			||||||
 | 
								{{ macro::subnav() }}
 | 
				
			||||||
 | 
							</div>
 | 
				
			||||||
 | 
						</nav>
 | 
				
			||||||
 | 
						{% block content %}{% endblock content %}
 | 
				
			||||||
 | 
						{% block script %}{% endblock script %}
 | 
				
			||||||
 | 
					</body>
 | 
				
			||||||
 | 
					</html>
 | 
				
			||||||
@@ -1,46 +1,15 @@
 | 
				
			|||||||
{% import "macros.html" as macro %}
 | 
					{% extends "base.html" %}
 | 
				
			||||||
<!DOCTYPE html>
 | 
					{% block content %}
 | 
				
			||||||
<html lang="en">
 | 
					<main>
 | 
				
			||||||
<head>
 | 
						<h2>Nejnovější recepty</h2>
 | 
				
			||||||
	<meta charset="UTF-8">
 | 
						<hr>
 | 
				
			||||||
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
 | 
						<section class="list">
 | 
				
			||||||
	<title>{% block title %}{{ config.title }}{% endblock title %}</title>
 | 
							{% for page in paginator.pages %}
 | 
				
			||||||
	<link rel="stylesheet" href="/style.css" type="text/css">
 | 
								{{ macro::print_recipe(recipe=page) }}
 | 
				
			||||||
	<link rel="stylesheet" href="/icons.css" type="text/css">
 | 
							{% endfor %}
 | 
				
			||||||
</head>
 | 
						</section>
 | 
				
			||||||
<body>
 | 
						<div class="pagination">
 | 
				
			||||||
 | 
							{{ macro::pagination() }}
 | 
				
			||||||
	<nav>
 | 
						</div>
 | 
				
			||||||
		<div class="mainnav">
 | 
					</main>
 | 
				
			||||||
			<h1><a href="/">Recepty na cesty</a></h1>
 | 
					{% endblock content %}
 | 
				
			||||||
			<ul>
 | 
					 | 
				
			||||||
				<li><a href="/vyhledavani/" title="Vyhledávání"><span class="icon-search"></span></a></li>
 | 
					 | 
				
			||||||
				<!-- <li><a href="/info/"><span class="icon-info"></span></a></li> -->
 | 
					 | 
				
			||||||
				<li><a href="{{ config.extra.git }}" title="Git"><span class="icon-git"></span></a></li>
 | 
					 | 
				
			||||||
			</ul>
 | 
					 | 
				
			||||||
		</div>
 | 
					 | 
				
			||||||
		<div class="subnav">
 | 
					 | 
				
			||||||
			{{ macro::subnav() }}
 | 
					 | 
				
			||||||
		</div>
 | 
					 | 
				
			||||||
	</nav>
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	{% block content %}
 | 
					 | 
				
			||||||
	<main>
 | 
					 | 
				
			||||||
		<h2>Nejnovější recepty</h2>
 | 
					 | 
				
			||||||
		<hr>
 | 
					 | 
				
			||||||
		<section class="list">
 | 
					 | 
				
			||||||
			{% for page in paginator.pages %}
 | 
					 | 
				
			||||||
				{{ macro::print_recipe(recipe=page) }}
 | 
					 | 
				
			||||||
			{% endfor %}
 | 
					 | 
				
			||||||
		</section>
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
		<div class="pagination">
 | 
					 | 
				
			||||||
			{{ macro::pagination() }}
 | 
					 | 
				
			||||||
		</div>
 | 
					 | 
				
			||||||
	
 | 
					 | 
				
			||||||
	</main>
 | 
					 | 
				
			||||||
	{% endblock content %}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	{% block script %}{% endblock script %}
 | 
					 | 
				
			||||||
</body>
 | 
					 | 
				
			||||||
</html>
 | 
					 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,4 +1,4 @@
 | 
				
			|||||||
{% extends "index.html" %}
 | 
					{% extends "base.html" %}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
{% block content %}
 | 
					{% block content %}
 | 
				
			||||||
<main>
 | 
					<main>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,4 +1,4 @@
 | 
				
			|||||||
{% extends "index.html" %}
 | 
					{% extends "base.html" %}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
{% block content %}
 | 
					{% block content %}
 | 
				
			||||||
<main>
 | 
					<main>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,10 +1,9 @@
 | 
				
			|||||||
{% extends "index.html" %}
 | 
					{% extends "base.html" %}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
{% block title %}{{ config.title }} — {{ page.title }}{% endblock title %}
 | 
					{% block title %}{{ config.title }} — {{ page.title }}{% endblock title %}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
{% block content %}
 | 
					{% block content %}
 | 
				
			||||||
<main class="recipe">
 | 
					<main class="recipe">
 | 
				
			||||||
	
 | 
					 | 
				
			||||||
	<h2>{{ page.title | upper }}</h2>
 | 
						<h2>{{ page.title | upper }}</h2>
 | 
				
			||||||
	<hr>
 | 
						<hr>
 | 
				
			||||||
	{{ macro::recipe_image() }}
 | 
						{{ macro::recipe_image() }}
 | 
				
			||||||
@@ -18,7 +17,6 @@
 | 
				
			|||||||
	<hr>
 | 
						<hr>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	{{ macro::recipe_taxonomies() }}
 | 
						{{ macro::recipe_taxonomies() }}
 | 
				
			||||||
 | 
					 | 
				
			||||||
</main>
 | 
					</main>
 | 
				
			||||||
{% endblock content %}
 | 
					{% endblock content %}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,4 +1,4 @@
 | 
				
			|||||||
{% extends "index.html" %}
 | 
					{% extends "base.html" %}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
{% block content %}
 | 
					{% block content %}
 | 
				
			||||||
<main>
 | 
					<main>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,4 +1,4 @@
 | 
				
			|||||||
{% extends "index.html" %}
 | 
					{% extends "base.html" %}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
{% block content %}
 | 
					{% block content %}
 | 
				
			||||||
<main>
 | 
					<main>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,4 +1,4 @@
 | 
				
			|||||||
{% extends "index.html" %}
 | 
					{% extends "base.html" %}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
{% block content %}
 | 
					{% block content %}
 | 
				
			||||||
<main>
 | 
					<main>
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user