💥 Diferencia entre renderizar y preparar página

This commit is contained in:
Manuel Cillero 2023-06-23 23:50:52 +02:00
parent 97b520340a
commit a33de4c92b
11 changed files with 111 additions and 46 deletions

View file

@ -21,7 +21,7 @@ impl ModuleTrait for Aliner {
}
impl ThemeTrait for Aliner {
fn before_render_page(&self, page: &mut Page) {
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("/aliner/css/styles.css").with_weight(-99),