From e0e481827e7f87aa4fd4a3c698d8de270ff07a4c Mon Sep 17 00:00:00 2001 From: Francesco Filicetti Date: Tue, 22 Oct 2024 13:47:00 +0200 Subject: [PATCH] feat: block to choice if include js bundle or not --- README.md | 1 + bootstrap_italia_template/templates/bootstrap-italia-base.html | 2 ++ setup.py | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 987a06e..8d80b38 100644 --- a/README.md +++ b/README.md @@ -83,6 +83,7 @@ I blocchi sono elencati in ordine di "apparizione" nel file ```bootstrap-italia- | Block | Descrizione | | --------------------------------------|---------------------| +| **{% block bootstrap_italia_loader %}** | Script di Bootstrap Italia (se si sceglie di non includere il bundle) | | **{% block page_title %}** | Tag della pagina | | **{% block page_meta_description %}** | tag <meta-description> della pagina | | **{% block page_meta_keywords %}** | tag <meta-keywords> della pagina | diff --git a/bootstrap_italia_template/templates/bootstrap-italia-base.html b/bootstrap_italia_template/templates/bootstrap-italia-base.html index e4d698e..79cb419 100644 --- a/bootstrap_italia_template/templates/bootstrap-italia-base.html +++ b/bootstrap_italia_template/templates/bootstrap-italia-base.html @@ -557,7 +557,9 @@ <h3 class="visually-hidden">Sezione Link Utili</h3> </footer> {% endblock footer %} + {% block bootstrap_italia_loader %} <script src="{% django_bootstrap_italia_static_path 'js/bootstrap-italia.bundle.min.js' %}"></script> + {% endblock bootstrap_italia_loader %} <script> bootstrap.loadFonts('/bootstrap-italia/dist/fonts'); </script> diff --git a/setup.py b/setup.py index 5f81200..f6f9d5e 100644 --- a/setup.py +++ b/setup.py @@ -13,7 +13,7 @@ setup( name='design-django-theme', - version='v2.10.0', + version='v2.10.0-1', packages=['bootstrap_italia_template', ], package_data={'bootstrap_italia_template': ['bootstrap_italia_template/*']}, include_package_data=True,