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" %}