mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-11 12:18:04 +03:00
47 lines
1.4 KiB
Plaintext
47 lines
1.4 KiB
Plaintext
include _includes/_mixins
|
|
|
|
- var _section = current.path[0]
|
|
- var _site = current.source
|
|
|
|
- var is_blog = (_section == 'blog')
|
|
- var is_article = ( (_section == 'blog' && _site != 'index') || template == 'article')
|
|
- var has_asides = (is_article || (_section == 'docs' && asides != false) || asides)
|
|
|
|
|
|
//- Layout
|
|
//- ============================================================================
|
|
|
|
doctype html
|
|
|
|
html(lang="en")
|
|
!=partial("_includes/_head", { _section: _section })
|
|
link(href='/assets/css/' + ((is_blog) ? stylesheets.blog : stylesheets.default) + '.css' rel='stylesheet')
|
|
link(href='/' + feed rel='alternate' type='application/rss+xml' title='RSS')
|
|
|
|
body.body
|
|
!=partial('_includes/_nav', { _section: _section, _site: _site })
|
|
|
|
if landing
|
|
!= yield
|
|
|
|
else
|
|
!=partial('_includes/_header', { is_article: is_article })
|
|
|
|
if sidebar
|
|
!=partial('_includes/_sidebar')
|
|
|
|
main.main(class='#{(sidebar) ? "main--sidebar" : "" } #{(has_asides) ? "main--asides" : "" } #{(is_article) ? "main--article" : "" }')
|
|
|
|
if is_article
|
|
!=partial('_includes/_article', { _section: _section })
|
|
|
|
else
|
|
!=yield
|
|
|
|
!=partial('_includes/_footer')
|
|
|
|
each script in scripts
|
|
script(src='/assets/js/' + script + '.js', type='text/javascript')
|
|
|
|
!=partial('_includes/_analytics')
|