Skip to content

Commit

Permalink
feat: block to choice if include js bundle or not
Browse files Browse the repository at this point in the history
  • Loading branch information
francesco-filicetti committed Oct 22, 2024
1 parent 8141ddb commit e0e4818
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <title> della pagina |
| **{% block page_meta_description %}** | tag <meta-description> della pagina |
| **{% block page_meta_keywords %}** | tag <meta-keywords> della pagina |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit e0e4818

Please sign in to comment.