Add sitemap to wpcarro.dev

- Create ./website directory
- Add a sitemap to wpcarro.dev
- Move covid-uk directory to sandbox directory

TODO: Next sandbox, blog, and learn in the website directory
This commit is contained in:
William Carroll 2020-03-20 00:22:13 +00:00
parent 76210a217c
commit 54d1a0048a
14 changed files with 79 additions and 4 deletions

View file

@ -11,7 +11,8 @@ in {
utils = readTree ./utils;
emacs = readTree ./emacs;
learn = readTree ./learn;
covid-uk = readTree ./covid-uk;
sandbox = readTree ./sandbox;
website = readTree ./website;
blog = readTree ./blog;
lisp = readTree ./lisp;
gopkgs = readTree ./gopkgs;

View file

@ -154,6 +154,11 @@ in {
'';
virtualHosts = {
"wpcarro.dev" = {
addSSL = true;
enableACME = true;
root = briefcase.website;
};
"learn.wpcarro.dev" = {
addSSL = true;
enableACME = true;
@ -167,9 +172,7 @@ in {
"sandbox.wpcarro.dev" = {
addSSL = true;
enableACME = true;
locations."/covid-19/" = {
alias = "${briefcase.covid-uk}/";
};
root = briefcase.sandbox;
};
};
};

15
sandbox/default.nix Normal file
View file

@ -0,0 +1,15 @@
{ pkgs, briefcase, ... }:
let
covid-uk = briefcase.sandbox.covid-uk;
in pkgs.stdenv.mkDerivation {
name = "covid-uk";
buildInputs = [];
src = ./.;
buildPhase = ''
mkdir -p $out
cp $src/index.html $out
cp -r ${briefcase.sandbox.covid-uk} $out/covid-uk
'';
dontInstall = true;
}

15
sandbox/index.html Normal file
View file

@ -0,0 +1,15 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>sandbox.wpcarro.dev</title>
</head>
<body>
<h1>Projects</h1>
<ul>
<li>
<a href="/covid-uk">COVID-19 in the UK</a>
</li>
</ul>
</body>
</html>

11
website/default.nix Normal file
View file

@ -0,0 +1,11 @@
{ pkgs, ... }:
pkgs.stdenv.mkDerivation {
name = "wpcarro.dev";
src = ./.;
buildPhase = ''
mkdir -p $out
cp $src/index.html $out
'';
dontInstall = true;
}

30
website/index.html Normal file
View file

@ -0,0 +1,30 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>wpcarro.dev</title>
</head>
<body>
<h1>Sitemap</h1>
<ul>
<li>
<a href="https://blog.wpcarro.dev">blog.wpcarro.dev</a>
</li>
<li>
<a href="https://learn.wpcarro.dev">learn.wpcarro.dev</a>
</li>
<li>
<a href="https://sandbox.wpcarro.dev">sandbox.wpcarro.dev</a>
</li>
<li>
<a href="https://twitter.com/wpcarro">Twitter</a>
</li>
<li>
<a href="https://github.com/wpcarro">Github</a>
</li>
<li>
<a href="https://linkedin.com/in/williampatrickcarroll">LinkedIn</a>
</li>
</ul>
</body>
</html>