This commit is contained in:
gd
2021-12-23 21:16:51 +03:00
parent 97129d058c
commit 9aed2f4727
12 changed files with 513 additions and 0 deletions

27
docs/layouts/base.j2 Normal file
View File

@ -0,0 +1,27 @@
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>
{% block title %}{% endblock %}
</title>
{% block head %}{% endblock %}
</head>
<body>
<h1 style="font-size: 48px; font-weight: 300; margin-bottom: 14px;">Pēji</h1>
<span style="font-size: 14px;"><i>Stupidly simple static site generator.</i></span>
{% if menu %}
<div class="menu">
<ul>
{% for link in menu.keys() %}
<li><a href="{{ menu.get(link) }}">{{ link }}</a></li>
{% endfor %}
</ul>
</div>
{% endif %}
{% block content %}
Nothing here.
{% endblock %}
</body>
</html>

9
docs/layouts/index.j2 Normal file
View File

@ -0,0 +1,9 @@
{% extends 'base.j2' %}
{% block title %}{{ title }} | {{ site_title }}{% endblock %}
{% block head %}{{ super() }}
<link rel="stylesheet" href="/themes/{{ theme }}/css/main.css">
<link rel="shortcut icon" href="/themes/{{ theme }}/images/favicon.ico" type="image/x-icon">
{% endblock %}
{% block content %}
{{ content | safe }}
{% endblock %}