fix semantics: wrap content body into section

This commit is contained in:
Valentin Gagarin 2024-11-13 15:24:41 +01:00 committed by Valentin Gagarin
parent 18864f2738
commit 897acd2a5c
2 changed files with 19 additions and 9 deletions

View file

@ -34,15 +34,19 @@ in
body.content = lib.mkForce [
(cfg.menus.main.outputs.html config)
{
section.heading = {
# TODO: i18n support
# TODO: structured dates
before = [{ p.content = "Published ${config.date}"; }];
content = config.title;
after = [{ p.content = "Written by ${config.author}"; }];
section = {
heading = {
# TODO: i18n support
# TODO: structured dates
before = [{ p.content = "Published ${config.date}"; }];
content = config.title;
after = [{ p.content = "Written by ${config.author}"; }];
};
content = [
(cfg.templates.html.markdown { inherit (config) name body; })
];
};
}
(cfg.templates.html.markdown { inherit (config) name body; })
];
};
});

View file

@ -64,8 +64,14 @@ in
};
body.content = [
(cfg.menus.main.outputs.html page)
{ section.heading.content = page.title; }
(cfg.templates.html.markdown { inherit (page) name body; })
{
section = {
heading.content = page.title;
content = [
(cfg.templates.html.markdown { inherit (page) name body; })
];
};
}
];
};
});