Files
picopage/picopage/templates/page.html

38 lines
1.1 KiB
HTML

{% if current_page.is_index %}
{% set base = "" %}
{% else %}
{% set base = "../" %}
{% endif %}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>{{ site_title }} - {{ page_title }}</title>
<link href="{{ base }}{{ theme }}" rel="stylesheet" type="text/css">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
</head>
<body>
<ul>
{% for page in pages %}
{% if page.is_index %}
<li><a href="{{ base }}">{{ site_title }}</a></li>
{% else %}
<li><a href="{{ base }}{{ page.stub }}">{% if current_page.stub == page.stub %}>> {% endif %}{{ page.name }}</a></li>
{% endif %}
{% endfor %}
</ul>
<div class="content">
{% for article in current_page.articles %}
<section id="{{ article.stub }}">
{{ article.content}}
</section>
{% endfor %}
</div>
<div class="footer">
<p>
Created with <a href="#">picopage</a>
</p>
</div>
</body>
</html>