summaryrefslogtreecommitdiff
path: root/content/experience.html.nix
blob: 8637802656c0e0bf258fed42ecba522876f11600 (plain)
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
{ html, data, lib, ... }:

let experience = data.experience;
in {
  title = "Experience";
  priority = 20;
  body = with html;
    dl (for (sort.reverse.byPath [ "date" "start" ] experience) (item:
      with item;
      lines [
        (dt [
          (with institution; "${position} @ ${href url name}, ${location}")
          br
          (small (lib.concatStringsSep " · "
            ([ (with date; timerange start end) ]
              ++ lib.optional (lib.hasAttr "supervisors" item)
              "supervised by ${
                lib.concatStringsSep " "
                (for supervisors (supervisor: with supervisor; href url name))
              }" ++ lib.optional (lib.hasAttr "assets" item)
              (lib.concatStringsSep " " (for assets
                (asset: with asset; href "#Publications#${id}" "${icon "las la-paperclip"} ${name}"))))))
        ])
        (dd description)
      ]));
}