Add an optional photo field to entries, which becomes a card-topping u-photo when displayed
This commit is contained in:
parent
cdda4e2eee
commit
bf970db801
4 changed files with 5 additions and 0 deletions
|
@ -1,4 +1,6 @@
|
|||
<article .h-entry .card.bg-dark>
|
||||
$maybe photo <- entryPhoto entry
|
||||
<img .card-img-top.u-photo src=@{staticR ["uploads", photo]} alt=#{entryTitle entry}>
|
||||
<div .card-body>
|
||||
$maybe name <- entryName entry
|
||||
<h4 .p-name .card-title>#{name}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue