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:
parent
4a18b3971a
commit
ac2c9b7e87
3 changed files with 18 additions and 17 deletions
|
|
@ -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 (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue