spaCy/website/_layout.jade

47 lines
1.4 KiB
Plaintext
Raw Normal View History

2016-03-31 14:24:48 +00:00
include _includes/_mixins
- var _section = current.path[0]
- var _site = current.source
2016-09-30 18:29:03 +00:00
- var is_blog = (_section == 'blog')
2016-03-31 14:24:48 +00:00
- 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 })
2016-09-30 18:29:03 +00:00
link(href='/assets/css/' + ((is_blog) ? stylesheets.blog : stylesheets.default) + '.css' rel='stylesheet')
link(href='/' + feed rel='alternate' type='application/rss+xml' title='RSS')
2016-03-31 14:24:48 +00:00
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')
2016-09-30 18:29:03 +00:00
2016-03-31 14:24:48 +00:00
each script in scripts
script(src='/assets/js/' + script + '.js', type='text/javascript')
!=partial('_includes/_analytics')