Initial commit

This commit is contained in:
2025-02-11 11:29:27 +07:00
commit 0eb8c68425
146 changed files with 2026 additions and 0 deletions

View File

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

View File

@@ -0,0 +1,31 @@
<!DOCTYPE html>
<html lang="ru">
<head>
{% use '/themes/default/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 '/themes/default/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,24 @@
{% block title %}
<title>{% if head.title != empty %}{{ head.title }}{% else %}shabashka by mirzaev{% 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 %}
{% for element in css %}
<link type="text/css" rel="stylesheet"{% if element.href %} href="{{ element.href }}"{% endif %} />
{% endfor %}
<link type="text/css" rel="stylesheet" href="/themes/default/css/fonts.css" />
<link type="text/css" rel="stylesheet" href="/themes/default/css/system.css" />
<link type="text/css" rel="stylesheet" href="/themes/default/css/header.css" />
<link type="text/css" rel="stylesheet" href="/themes/default/css/main.css" />
<link type="text/css" rel="stylesheet" href="/themes/default/css/aside.css" />
<link type="text/css" rel="stylesheet" href="/themes/default/css/themes/default/footer.css" />
<link type="text/css" rel="stylesheet" href="/themes/default/css/themes/default/colors.css" />
{% endblock %}

View File

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

View File

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

View File

@@ -0,0 +1,5 @@
{% block js %}
{% for element in js %}
<script {% if element.src %}src="{{ element.src }}"{% endif %} {% if element.type %}type="{{ element.type }}"{% endif %}>{{ element.innerText }}</script>
{% endfor %}
{% endblock %}