style(web/homepage): Wrap links around the entire entry

This makes it much easier to click on them. Required some style
reshuffling to satisfy CSS.
This commit is contained in:
Vincent Ambo 2020-02-09 02:20:41 +00:00
parent 4a18b3971a
commit ac2c9b7e87
3 changed files with 18 additions and 17 deletions

View file

@ -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 (