Add OptionId value to page body

This commit is contained in:
Manuel Cillero 2024-02-26 07:45:46 +01:00
parent d66063a1f7
commit ae030b5889
3 changed files with 15 additions and 3 deletions

View file

@ -44,7 +44,7 @@ pub trait ThemeTrait: PackageTrait + Send + Sync {
let skip_to = concat_string!("#", page.skip_to().get().unwrap_or("content".to_owned()));
html! {
body class=[page.body_classes().get()] {
body id=[page.body_id().get()] class=[page.body_classes().get()] {
@if let Some(skip) = L10n::l("skip_to_content").using(page.context().langid()) {
div class="pt-body__skip" {
a href=(skip_to) { (skip) }