👽️ Aplica cambio de uso de estilos y javascripts

This commit is contained in:
Manuel Cillero 2023-06-26 22:28:28 +02:00
parent ea782f820d
commit bf356774f8
4 changed files with 15 additions and 20 deletions

View file

@ -45,13 +45,10 @@ impl ThemeTrait for Bootsier {
fn before_prepare_page(&self, page: &mut Page) {
page.alter_favicon(Some(Favicon::new().with_icon("/theme/favicon.ico")))
.alter_context(ContextOp::AddStyleSheet(
StyleSheet::located("/bootsier/css/bootstrap.min.css")
.with_version("5.1.3")
.with_weight(-99),
StyleSheet::located("/bootsier/css/bootstrap.min.css?v=5.1.3").with_weight(-99),
))
.alter_context(ContextOp::AddJavaScript(
JavaScript::located("/bootsier/js/bootstrap.bundle.min.js")
.with_version("5.1.3")
JavaScript::located("/bootsier/js/bootstrap.bundle.min.js?v=5.1.3")
.with_weight(-99),
));
pagetop_jquery::JQuery::add_jquery(page.context());