diff options
| author | quentin@aristote.fr <quentin@aristote.fr> | 2023-08-21 17:50:43 +0200 |
|---|---|---|
| committer | quentin@aristote.fr <quentin@aristote.fr> | 2023-08-23 18:29:57 +0200 |
| commit | baea04747697ad5039139ef44bca7b3965147696 (patch) | |
| tree | 6da0d87642c19120d913b66b1734d3de6fbb385d /html/basics | |
| parent | 5752f0a1017f33c78428a915d3bcf2ccd80f3e79 (diff) | |
update info api
Diffstat (limited to 'html/basics')
| -rw-r--r-- | html/basics/default.nix | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/html/basics/default.nix b/html/basics/default.nix index 7ee8be4..55de692 100644 --- a/html/basics/default.nix +++ b/html/basics/default.nix @@ -1,7 +1,9 @@ { html, data, lib, ... }: let - basics = data.basics; + basics = data.basics // { + fullname = with data.basics.name; "${first} ${last}"; + }; col = html.div { class = "col"; style = "align-self: center"; @@ -13,8 +15,7 @@ in { title = "About me"; priority = 0; body = with html; - with data.basics; - lines [ + with basics; [ br (div { class = "row"; } [ (col [ @@ -27,7 +28,7 @@ in { "512" ] ++ [ "${avatar} 934w" ]); sizes = "(max-width: 480px) 60vw, 30vw"; - alt = "Quentin Aristote"; + alt = fullname; style = '' aspect-ratio: 1 / 1; border-radius: 50%; @@ -35,13 +36,14 @@ in { display: block; ''; }) - (center h3 name) - (center p (with institution; [ position br "@ ${href url name}" ])) + (center h3 fullname) + (center p (with institution; [ position wbr "@ ${href url name}" ])) ]) (col (dl [ (dt "${icon "las la-at"} e-mail") - (dd (for email - (email: "${mailto email.address} (${email.name}) ${br}"))) + (dd + (lib.mapAttrsToList (name: value: "${mailto value} (${name}) ${br}") + email)) (dt "${icon "las la-key"} keys") (dd (for keys.pgp (name: path: href path name))) (dt "${icon "las la-map-marker"} address") |
