mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +03:00
23 lines
719 B
Plaintext
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)]
|