forked from Fediversity/Fediversity
refactor start page for readability
This commit is contained in:
parent
18b03924ad
commit
ecb9996718
|
@ -27,8 +27,18 @@ in
|
|||
{ href = "${link cfg.assets."index.css"}"; }
|
||||
];
|
||||
body.content =
|
||||
[
|
||||
(lib.head prev.html.body.content)
|
||||
{
|
||||
section = {
|
||||
attrs = { };
|
||||
heading.content = config.title;
|
||||
content = [
|
||||
(cfg.templates.html.markdown { inherit (config) name body; })
|
||||
]
|
||||
++
|
||||
(
|
||||
let
|
||||
prev-content = prev.html.body.content;
|
||||
to-section = { heading, body, attrs ? { } }: {
|
||||
section = {
|
||||
heading.content = heading;
|
||||
|
@ -42,17 +52,7 @@ in
|
|||
};
|
||||
};
|
||||
in
|
||||
[
|
||||
(lib.head prev-content) # header
|
||||
{
|
||||
section = {
|
||||
attrs = { };
|
||||
heading.content = config.title;
|
||||
content = [
|
||||
(cfg.templates.html.markdown { inherit (config) name body; })
|
||||
]
|
||||
++
|
||||
(map to-section [
|
||||
map to-section [
|
||||
{
|
||||
heading = "Fediversity grants";
|
||||
body = ''
|
||||
|
@ -87,7 +87,8 @@ in
|
|||
'') (with pages; [ individuals developers european-commission ]))}
|
||||
'';
|
||||
}
|
||||
]);
|
||||
]
|
||||
);
|
||||
};
|
||||
}
|
||||
]
|
||||
|
|
|
@ -505,7 +505,6 @@ let
|
|||
else baseType.merge loc (map (p: p.def // { value = p.processed; }) processed);
|
||||
};
|
||||
in
|
||||
# HACK: bail out for now
|
||||
with-section-constraints
|
||||
# TODO: find a reasonable cut-off for where to place raw content
|
||||
(listOf (either str (attrTag categories.flow)));
|
||||
|
|
Loading…
Reference in a new issue