added installer

This commit is contained in:
2024-01-11 05:38:30 +07:00
parent 87a80b7c91
commit a0621b623b
18 changed files with 46 additions and 33 deletions

View File

@@ -0,0 +1,31 @@
<!DOCTYPE html>
<html lang="ru">
<head>
{% use 'head.html' with title as head_title, meta as head_meta, css as head_css %}
{% block title %}
{{ block('head_title') }}
{% endblock %}
{% block meta %}
{{ block('head_meta') }}
{% endblock %}
{{ block('head_css') }}
{% block css %}
{% endblock %}
</head>
<body>
{% block body %}
{% endblock %}
{% include 'js.html' %}
{% block js %}
{% endblock %}
</body>
</html>

View File

@@ -0,0 +1,10 @@
{% block css %}
{% endblock %}
{% block body %}
<footer>
</footer>
{% endblock %}
{% block js %}
{% endblock %}

View File

@@ -0,0 +1,15 @@
{% block title %}
<title>{% if head.title != empty %}{{head.title}}{% else %}${REPO_NAME} by ${REPO_OWNER}{% endif %}</title>
{% endblock %}
{% block meta %}
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
{% for meta in head.metas %}
<meta {% for name, value in meta.attributes %}{{name}}="{{value}}" {% endfor %}>
{% endfor %}
{% endblock %}
{% block css %}
<link type="text/css" rel="stylesheet" href="/css/themes/default/main.css" />
{% endblock %}

View File

@@ -0,0 +1,10 @@
{% block css %}
{% endblock %}
{% block body %}
<header>
</header>
{% endblock %}
{% block js %}
{% endblock %}

View File

@@ -0,0 +1,27 @@
{% extends "core.html" %}
{% use "core.html" with css as core_css, body as core, js as core_js %}
{% use "header.html" with css as header_css, body as header, js as header_js %}
{% use "footer.html" with css as footer_css, body as footer, js as footer_js %}
{% block css %}
{{ block('core_css') }}
{{ block('header_css') }}
{{ block('footer_css') }}
{% endblock %}
{% block body %}
{{ block('header') }}
<main>
{% block main %}
{{ main|raw }}
{% endblock %}
</main>
{{ block('footer') }}
{% endblock %}
{% block js %}
{{ block('footer_js') }}
{{ block('header_js') }}
{{ block('core_js') }}
{% endblock %}

View File

@@ -0,0 +1,2 @@
{% block js %}
{% endblock %}