blob: a8ac132cb217ce41778556dbdd4f727057f565bd (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
{ depot, pkgs, ... }:
let
# https://developers.google.com/search/docs/advanced/structured-data/logo
structuredData = {
"@context" = "https://schema.org";
"@type" = "Organisation";
url = "https://tvl.su";
logo = "https://static.tvl.fyi/latest/logo-animated.svg";
};
common = description: {
extraFooter = "\n|\n © ООО ТВЛ";
staticUrl = "https://static.tvl.su/latest";
extraHead = ''
<meta name="description" content="${description}">
<script type="application/ld+json">
${builtins.toJSON structuredData}
</script>
<style>
.tvl-logo {
width: 60%;
display: block;
margin-left: auto;
margin-right: auto;
}
.active-lang {
color: black;
font-weight: bold;
}
.inactive-lang {
color: inherit;
}
</style>
'';
};
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);
in
pkgs.runCommand "corp-website" { } ''
mkdir -p $out/{en,ru}
cp ${indexEn} $out/index.html
cp ${indexEn} $out/en/index.html
cp ${indexRu} $out/ru/index.html
''
|