mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 01:46:28 +03:00
18 lines
611 B
Plaintext
18 lines
611 B
Plaintext
include _mixins
|
|
|
|
- var post_counter = 0
|
|
- var is_docs = (_section == 'docs')
|
|
|
|
|
|
//- Latest Posts
|
|
//- ============================================================================
|
|
|
|
+grid('padding')
|
|
each post, slug in ( (_section == 'docs' ) ? public.docs.tutorials._data : public.blog._data)
|
|
if slug != 'index' && slug != current.source && post_counter < (max || 3)
|
|
|
|
+grid-col('space-between', ((max > 2 && max % 3 == 0) ? 'third' : 'half'))
|
|
!=partial('_teaser', { teaser: post, slug: slug, _root: (is_docs) ? '/docs/tutorials/' : '/blog/' })
|
|
|
|
- post_counter++
|