🚚 Actualiza rutas de assets estáticos
Los CSS e imágenes propios de PageTop se sirven bajo `/pagetop/`, por lo que las referencias a `/css/` e `/img/` deben incluir ese prefijo.
This commit is contained in:
parent
7553ed35ec
commit
019961ed77
4 changed files with 9 additions and 9 deletions
|
|
@ -114,7 +114,7 @@ impl Component for Intro {
|
|||
|
||||
fn prepare(&self, cx: &mut Context) -> Result<Markup, ComponentError> {
|
||||
cx.alter_assets(AssetsOp::AddStyleSheet(
|
||||
StyleSheet::from("/css/intro.css").with_version(PAGETOP_VERSION),
|
||||
StyleSheet::from("/pagetop/css/intro.css").with_version(PAGETOP_VERSION),
|
||||
));
|
||||
if *self.opening() == IntroOpening::PageTop {
|
||||
cx.alter_assets(AssetsOp::AddJavaScript(JavaScript::on_load_async("intro-js", |cx|
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue