forked from Fediversity/fediversity.eu
Compare commits
1 commit
72fe2e9639
...
008f5a42af
Author | SHA1 | Date | |
---|---|---|---|
008f5a42af |
|
@ -3,7 +3,15 @@ let
|
||||||
inherit (config) pages;
|
inherit (config) pages;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports = with lib.fileset; toList (difference (fileFilter ({ hasExt, ... }: hasExt "nix") ./.) ./default.nix);
|
imports = [
|
||||||
|
./grants.nix
|
||||||
|
./fediversity.nix
|
||||||
|
]
|
||||||
|
++
|
||||||
|
lib.fileset.toList ./partners
|
||||||
|
++
|
||||||
|
lib.fileset.toList ./news
|
||||||
|
;
|
||||||
|
|
||||||
pages.index = {
|
pages.index = {
|
||||||
title = "Fediversity";
|
title = "Fediversity";
|
||||||
|
|
|
@ -46,11 +46,6 @@ let
|
||||||
'';
|
'';
|
||||||
type = with types; nonEmptyListOf str;
|
type = with types; nonEmptyListOf str;
|
||||||
};
|
};
|
||||||
link = mkOption {
|
|
||||||
description = "Helper function for transparent linking to other pages";
|
|
||||||
type = with types; functionTo str;
|
|
||||||
default = target: "TODO: compute the relative path based on `locations`";
|
|
||||||
};
|
|
||||||
outPath = mkOption {
|
outPath = mkOption {
|
||||||
description = ''
|
description = ''
|
||||||
Location of the page, used for transparently creating links
|
Location of the page, used for transparently creating links
|
||||||
|
@ -146,9 +141,6 @@ in
|
||||||
{
|
{
|
||||||
page = lib.mkDefault (config: page: {
|
page = lib.mkDefault (config: page: {
|
||||||
# TODO: create static redirects from `tail page.locations`
|
# TODO: create static redirects from `tail page.locations`
|
||||||
# TODO: reconsider using `page.outPath` and what to put into `locations`.
|
|
||||||
# maybe we can avoid having ".html" suffixes there.
|
|
||||||
# since templates can output multiple files, `html` is merely one of many things we *could* produce.
|
|
||||||
${page.outPath} = builtins.toFile "${page.name}.html" ''
|
${page.outPath} = builtins.toFile "${page.name}.html" ''
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
|
|
Reference in a new issue