Support BlockName config - allows to rename the block.

This commit is contained in:
2022-04-23 16:54:54 +03:00
parent 2a64defd56
commit 41daff5390
10 changed files with 109 additions and 25 deletions
+1 -1
View File
@@ -8,7 +8,7 @@
<main>
<div class="container">
{{> src/template }}
{{> (include_block_template) }}
</div>
</main>
+1 -1
View File
@@ -7,7 +7,7 @@
{{> (include_partial "layouts/partials/toolbar") }}
<main>
{{> src/template }}
{{> (include_block_template) }}
</main>
{{> (include_partial "layouts/partials/scripts") }}
+1 -1
View File
@@ -4,6 +4,6 @@
<link rel="stylesheet" href="{{ config.cssUrl }}">
<link rel="stylesheet" href="styles/page--main.css">
<link rel="stylesheet" href="styles/template.min.css">
<link rel="stylesheet" href="styles/{{ config.blockName }}.min.css">
<link rel="stylesheet" href="https://unpkg.com/swiper@8/swiper-bundle.min.css"/>
</head>
+1 -1
View File
@@ -1,4 +1,4 @@
<script src="https://code.jquery.com/jquery-3.4.1.slim.min.js"></script>
<script src="https://unpkg.com/swiper@8/swiper-bundle.min.js"></script>
<script src="scripts/page--toolbar.js"></script>
<script src="scripts/template.min.js"></script>
<script src="scripts/{{ config.blockName }}.min.js"></script>