Add an optional photo field to entries, which becomes a card-topping u-photo when displayed

This commit is contained in:
Danielle McLean 2017-10-16 08:29:21 +11:00
parent cdda4e2eee
commit bf970db801
Signed by: 00dani
GPG key ID: 5A5D2D1AFF12EEC5
4 changed files with 5 additions and 0 deletions

View file

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