2021-09-28 22:25:32 +02:00
|
|
|
|
{ depot, pkgs, ... }:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let
|
|
|
|
|
# https://developers.google.com/search/docs/advanced/structured-data/logo
|
|
|
|
|
structuredData = {
|
|
|
|
|
"@context" = "https://schema.org";
|
|
|
|
|
"@type" = "Organisation";
|
|
|
|
|
url = "https://tvl.su";
|
2023-01-27 13:37:20 +01:00
|
|
|
|
logo = "https://static.tvl.fyi/latest/logo-animated.svg";
|
2021-09-28 22:25:32 +02:00
|
|
|
|
};
|
2023-01-27 13:37:20 +01:00
|
|
|
|
|
|
|
|
|
common = description: {
|
2021-09-30 22:11:29 +02:00
|
|
|
|
extraFooter = "\n|\n © ООО ТВЛ";
|
2023-01-27 13:37:20 +01:00
|
|
|
|
staticUrl = "https://static.tvl.su/latest";
|
2021-09-28 22:25:32 +02:00
|
|
|
|
|
2021-09-30 22:11:29 +02:00
|
|
|
|
extraHead = ''
|
2023-01-27 13:37:20 +01:00
|
|
|
|
<meta name="description" content="${description}">
|
2021-09-30 22:11:29 +02:00
|
|
|
|
<script type="application/ld+json">
|
|
|
|
|
${builtins.toJSON structuredData}
|
|
|
|
|
</script>
|
2021-09-28 22:25:32 +02:00
|
|
|
|
<style>
|
|
|
|
|
.tvl-logo {
|
|
|
|
|
width: 60%;
|
|
|
|
|
display: block;
|
|
|
|
|
margin-left: auto;
|
|
|
|
|
margin-right: auto;
|
|
|
|
|
}
|
2023-01-27 13:37:20 +01:00
|
|
|
|
|
|
|
|
|
.active-lang {
|
|
|
|
|
color: black;
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.inactive-lang {
|
|
|
|
|
color: inherit;
|
|
|
|
|
}
|
2021-09-28 22:25:32 +02:00
|
|
|
|
</style>
|
2021-09-30 22:11:29 +02:00
|
|
|
|
'';
|
|
|
|
|
};
|
2023-01-27 13:37:20 +01:00
|
|
|
|
|
|
|
|
|
descEn = "TVL provides technology consulting for monorepos, Nix, and other SRE/DevOps/Software Engineering topics.";
|
|
|
|
|
indexEn = depot.web.tvl.template ({
|
|
|
|
|
title = "TVL (The Virus Lounge) - Software consulting";
|
|
|
|
|
content = builtins.readFile ./content-en.md;
|
|
|
|
|
} // common descEn);
|
|
|
|
|
|
|
|
|
|
descRu = "TVL предоставляет технологическое консультирование по монорепозиториям, Nix и другим темам SRE/DevOps/Software Engineering.";
|
|
|
|
|
indexRu = depot.web.tvl.template ({
|
|
|
|
|
title = "ТВЛ - Монорепозитории, SRE, Nix, программное обеспечение";
|
|
|
|
|
content = builtins.readFile ./content-ru.md;
|
|
|
|
|
} // common descRu);
|
2021-09-30 22:11:29 +02:00
|
|
|
|
in
|
2022-09-26 19:33:05 +02:00
|
|
|
|
pkgs.runCommand "corp-website" { } ''
|
2023-01-27 13:37:20 +01:00
|
|
|
|
mkdir -p $out/{en,ru}
|
|
|
|
|
cp ${indexEn} $out/index.html
|
|
|
|
|
cp ${indexEn} $out/en/index.html
|
|
|
|
|
cp ${indexRu} $out/ru/index.html
|
2021-09-30 22:11:29 +02:00
|
|
|
|
''
|