forked from Fediversity/Fediversity
fix semantics: wrap content body into section
This commit is contained in:
parent
18864f2738
commit
897acd2a5c
|
@ -34,17 +34,21 @@ in
|
|||
body.content = lib.mkForce [
|
||||
(cfg.menus.main.outputs.html config)
|
||||
{
|
||||
section.heading = {
|
||||
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; })
|
||||
];
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
});
|
||||
};
|
||||
}
|
||||
|
|
|
@ -64,9 +64,15 @@ in
|
|||
};
|
||||
body.content = [
|
||||
(cfg.menus.main.outputs.html page)
|
||||
{ section.heading.content = page.title; }
|
||||
{
|
||||
section = {
|
||||
heading.content = page.title;
|
||||
content = [
|
||||
(cfg.templates.html.markdown { inherit (page) name body; })
|
||||
];
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue