spaCy/website/_includes/_teaser.jade
2016-04-01 01:24:48 +11:00

23 lines
719 B
Plaintext

include _mixins
//- Teaser
//- ============================================================================
.teaser
if teaser.image
a(href=(_root || '') + slug target=teaser.target)
.image-ratio: img(src=(_root || '') + 'img/' + ((is_featured) ? teaser.image.file : teaser.image.file_small || teaser.image.file))
+h2
if is_featured
div: .label-strong Featured
a.block(href=(_root || '') + slug target=teaser.target class=(is_featured) ? 'h1' : 'h2')=teaser.title
p(class=(is_featured) ? 'text-lead' : '')=teaser.description
if showmeta != false
.text-meta.text-small
//- | by #{authors[teaser.author].name} on
| #[+date(teaser.date)]