spaCy/website/_layout.jade

60 lines
2.0 KiB
Plaintext
Raw Normal View History

2016-10-03 18:19:13 +00:00
//- ----------------------------------
//- 💫 GLOBAL LAYOUT
//- ----------------------------------
2016-03-31 14:24:48 +00:00
2016-10-03 18:19:13 +00:00
include _includes/_mixins
2016-03-31 14:24:48 +00:00
doctype html
html(lang="en")
2016-10-03 18:19:13 +00:00
title=(current.path[0] == "index") ? SITENAME + " | " + SLOGAN : title + " | " + SITENAME
meta(charset="utf-8")
meta(name="viewport" content="width=device-width, initial-scale=1.0")
meta(name="referrer" content="always")
meta(name="description" content=description)
meta(property="og:type" content="website")
meta(property="og:site_name" content=sitename)
meta(property="og:url" content="#{SITE_URL}/#{current.path.join('/')}")
meta(property="og:title" content=title)
meta(property="og:description" content=description)
meta(property="og:image" content="/assets/img/social.png")
meta(name="twitter:card" content="summary_large_image")
meta(name="twitter:site" content="@" + SOCIAL.twitter)
meta(name="twitter:title" content=title)
meta(name="twitter:description" content=description)
meta(name="twitter:image" content="/assets/img/social.jpg")
link(rel="shortcut icon" href="/assets/img/favicon.ico")
link(rel="icon" type="image/x-icon" href="/assets/img/favicon.ico")
link(href="/assets/css/style.css" rel="stylesheet")
body
include _includes/_navigation
if !landing
header.o-header.u-pattern.u-text-center
if current.path[1] == "tutorials"
h2.u-heading-1.u-text-shadow Tutorials
2016-03-31 14:24:48 +00:00
2016-10-03 18:19:13 +00:00
else
+h(1).u-text-shadow=title
2016-03-31 14:24:48 +00:00
if sidebar
2016-10-03 18:19:13 +00:00
include _includes/_sidebar
2016-03-31 14:24:48 +00:00
2016-10-03 18:19:13 +00:00
main.o-content(class="#{(sidebar) ? 'o-content--sidebar' : '' } #{((current.path[0] == 'docs' && asides != false) || asides) ? 'o-content--asides' : '' }")
if current.path[1] == "tutorials"
+h(1)=title
2016-03-31 14:24:48 +00:00
2016-10-03 18:19:13 +00:00
!=yield
2016-03-31 14:24:48 +00:00
2016-10-03 18:19:13 +00:00
else
!=yield
2016-03-31 14:24:48 +00:00
2016-10-03 18:19:13 +00:00
include _includes/_footer
2016-03-31 14:24:48 +00:00
2016-10-03 18:19:13 +00:00
include _includes/_scripts