diff options
author | Vincent Ambo <tazjin@google.com> | 2020-02-09T02·20+0000 |
---|---|---|
committer | Vincent Ambo <tazjin@google.com> | 2020-02-09T02·20+0000 |
commit | ac2c9b7e87daabcaa86dfad98034f82e61915107 (patch) | |
tree | f718c2a898d4c963c2f1bd9e7715f23353dc27fa /web/homepage/default.nix | |
parent | 4a18b3971a533232c11c03afe6a971a1a6988066 (diff) |
style(web/homepage): Wrap links around the entire entry r/507
This makes it much easier to click on them. Required some style reshuffling to satisfy CSS.
Diffstat (limited to 'web/homepage/default.nix')
-rw-r--r-- | web/homepage/default.nix | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/web/homepage/default.nix b/web/homepage/default.nix index e7190bbc9d22..d2905a7eb6ca 100644 --- a/web/homepage/default.nix +++ b/web/homepage/default.nix @@ -46,16 +46,16 @@ let }); entryToDiv = defun [ entry string ] (entry: '' - <div class="entry ${entry.class}"> - <p> - <a class="entry-title" href="${entry.url}">${escape entry.title}</a> - </p> - ${ - lib.optionalString ((entry ? description) && (entry.description != null)) - "<p class=\"entry-description\">${escape entry.description}</p>" - } - <p class="entry-date">${formatEntryDate entry}</p> - </div> + <a href="${entry.url}" class="entry ${entry.class}"> + <div> + <p class="entry-title">${escape entry.title}</p> + ${ + lib.optionalString ((entry ? description) && (entry.description != null)) + "<p class=\"entry-description\">${escape entry.description}</p>" + } + <p class="entry-date">${formatEntryDate entry}</p> + </div> + </a> ''); index = entries: third_party.writeText "index.html" (lib.concatStrings ( |