forked from Fediversity/fediversity.eu
fix semantics: wrap content body into section
This commit is contained in:
parent
9c2b543e47
commit
3edcca2815
|
@ -34,15 +34,19 @@ in
|
||||||
body.content = lib.mkForce [
|
body.content = lib.mkForce [
|
||||||
(cfg.menus.main.outputs.html config)
|
(cfg.menus.main.outputs.html config)
|
||||||
{
|
{
|
||||||
section.heading = {
|
section = {
|
||||||
# TODO: i18n support
|
heading = {
|
||||||
# TODO: structured dates
|
# TODO: i18n support
|
||||||
before = [{ p.content = "Published ${config.date}"; }];
|
# TODO: structured dates
|
||||||
content = config.title;
|
before = [{ p.content = "Published ${config.date}"; }];
|
||||||
after = [{ p.content = "Written by ${config.author}"; }];
|
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; })
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
|
@ -64,8 +64,14 @@ in
|
||||||
};
|
};
|
||||||
body.content = [
|
body.content = [
|
||||||
(cfg.menus.main.outputs.html page)
|
(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; })
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
Reference in a new issue