From d2bc1678f5ef1737e971dba04d4bbb0d85cf19a6 Mon Sep 17 00:00:00 2001 From: AnthonyAxenov Date: Sun, 4 Sep 2022 09:30:35 +0800 Subject: [PATCH] =?UTF-8?q?=D0=9A=D0=B0=D1=81=D1=82=D0=BE=D0=BC=D0=BD?= =?UTF-8?q?=D1=8B=D0=B5=20=D0=B1=D0=BB=D0=BE=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 2 ++ src/views/custom/.gitkeep | 0 src/views/custom/custom.twig.example | 6 ++++++ src/views/layouts/default.twig | 5 ++--- 4 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 src/views/custom/.gitkeep create mode 100644 src/views/custom/custom.twig.example diff --git a/.gitignore b/.gitignore index 80a1a6b..19cc0ba 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,8 @@ /downloaded /src/cache/* /src/vendor +/src/views/custom/* +!/src/views/custom/custom.twig.example *.log .env *.m3u diff --git a/src/views/custom/.gitkeep b/src/views/custom/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/src/views/custom/custom.twig.example b/src/views/custom/custom.twig.example new file mode 100644 index 0000000..e5dc82d --- /dev/null +++ b/src/views/custom/custom.twig.example @@ -0,0 +1,6 @@ +{# Файл для включения кастомных блоков #} + +{% block head %}{# ваш код здесь #}{% endblock %} +{% block header %}{# ваш код здесь #}{% endblock %} +{% block content %}{# ваш код здесь #}{% endblock %} +{% block footer %}{# ваш код здесь #}{% endblock %} diff --git a/src/views/layouts/default.twig b/src/views/layouts/default.twig index d69c7ce..25e36c5 100644 --- a/src/views/layouts/default.twig +++ b/src/views/layouts/default.twig @@ -6,7 +6,6 @@ - @@ -17,8 +16,7 @@ - - + {% block head %}{% endblock %}
@@ -67,5 +65,6 @@ href="https://axenov.dev">axenov.dev
+ {% include "custom/custom.twig" %}