🔒 Mejora seguridad de enlaces con noopener

This commit is contained in:
Manuel Cillero 2025-10-25 07:13:15 +02:00
parent f79f976651
commit bf38ed0356
4 changed files with 7 additions and 7 deletions

View file

@ -166,7 +166,7 @@ impl Component for Intro {
class="intro-button__link"
href=((lnk)(cx))
target="_blank"
rel="noreferrer"
rel="noopener noreferrer"
{
span {} span {} span {}
div class="intro-button__text" {
@ -216,9 +216,9 @@ impl Component for Intro {
}
}
div class="intro-footer__links" {
a href="https://crates.io/crates/pagetop" target="_blank" rel="noreferrer" { ("Crates.io") }
a href="https://docs.rs/pagetop" target="_blank" rel="noreferrer" { ("Docs.rs") }
a href="https://git.cillero.es/manuelcillero/pagetop" target="_blank" rel="noreferrer" { (L10n::l("intro_code").using(cx)) }
a href="https://crates.io/crates/pagetop" target="_blank" rel="noopener noreferrer" { ("Crates.io") }
a href="https://docs.rs/pagetop" target="_blank" rel="noopener noreferrer" { ("Docs.rs") }
a href="https://git.cillero.es/manuelcillero/pagetop" target="_blank" rel="noopener noreferrer" { (L10n::l("intro_code").using(cx)) }
em { (L10n::l("intro_have_fun").using(cx)) }
}
}

View file

@ -1,7 +1,7 @@
use crate::prelude::*;
// Enlace a la página oficial de PageTop.
const LINK: &str = "<a href=\"https://pagetop.cillero.es\" rel=\"noreferrer\">PageTop</a>";
const LINK: &str = "<a href=\"https://pagetop.cillero.es\" rel=\"noopener noreferrer\">PageTop</a>";
/// Componente que renderiza la sección 'Powered by' (*Funciona con*) típica del pie de página.
///