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";
|
2021-10-01 18:57:43 +02:00
|
|
|
|
logo = "https://static.tvl.fyi/${depot.web.static.drvHash}/logo-animated.svg";
|
2021-09-28 22:25:32 +02:00
|
|
|
|
};
|
2021-09-30 22:11:29 +02:00
|
|
|
|
index = depot.web.tvl.template {
|
|
|
|
|
title = "TVL (The Virus Lounge) - Software consulting";
|
|
|
|
|
content = builtins.readFile ./content.md;
|
|
|
|
|
extraFooter = "\n|\n © ООО ТВЛ";
|
2021-09-28 22:25:32 +02:00
|
|
|
|
|
2021-09-30 22:11:29 +02:00
|
|
|
|
# TODO(tazjin): The `.tvl-logo` thing can probably go in the shared CSS.
|
|
|
|
|
extraHead = ''
|
|
|
|
|
<meta name="description" content="TVL provides technology consulting for monorepos, Nix, and other SRE/DevOps/Software Engineering topics.">
|
|
|
|
|
<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;
|
|
|
|
|
}
|
|
|
|
|
</style>
|
2021-09-30 22:11:29 +02:00
|
|
|
|
'';
|
|
|
|
|
};
|
|
|
|
|
in
|
2022-09-26 19:33:05 +02:00
|
|
|
|
pkgs.runCommand "corp-website" { } ''
|
2021-09-30 22:11:29 +02:00
|
|
|
|
mkdir $out
|
|
|
|
|
cp ${index} $out/index.html
|
|
|
|
|
''
|