spaCy/website/_layout.jade

61 lines
2.1 KiB
Plaintext
Raw Normal View History

2016-10-03 21:19:13 +03:00
//- 💫 GLOBAL LAYOUT
2016-03-31 17:24:48 +03:00
2016-10-03 21:19:13 +03:00
include _includes/_mixins
2016-03-31 17:24:48 +03:00
- title = IS_MODELS ? LANGUAGES[current.source] || title : title
2017-10-03 15:54:33 +03:00
- social_title = (SECTION == "index") ? SITENAME + " - " + SLOGAN : title + " - " + SITENAME
- social_img = SITE_URL + "/assets/img/social/preview_" + (preview || ALPHA ? "alpha" : "default") + ".jpg"
2016-03-31 17:24:48 +03:00
doctype html
html(lang="en")
2016-10-31 21:04:15 +03:00
title
if SECTION == "api" || SECTION == "usage" || SECTION == "models"
- var title_section = (SECTION == "api") ? "API" : SECTION.charAt(0).toUpperCase() + SECTION.slice(1)
| #{title} | #{SITENAME} #{title_section} Documentation
2016-10-31 21:04:15 +03:00
else if SECTION != "index"
| #{title} | #{SITENAME}
else
| #{SITENAME} - #{SLOGAN}
2016-10-03 21:19:13 +03:00
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('/')}")
2017-10-03 15:54:33 +03:00
meta(property="og:title" content=social_title)
2016-10-03 21:19:13 +03:00
meta(property="og:description" content=description)
meta(property="og:image" content=social_img)
2016-10-03 21:19:13 +03:00
meta(name="twitter:card" content="summary_large_image")
meta(name="twitter:site" content="@" + SOCIAL.twitter)
2017-10-03 15:54:33 +03:00
meta(name="twitter:title" content=social_title)
2016-10-03 21:19:13 +03:00
meta(name="twitter:description" content=description)
meta(name="twitter:image" content=social_img)
2016-10-03 21:19:13 +03:00
link(rel="shortcut icon" href="/assets/img/favicon.ico")
link(rel="icon" type="image/x-icon" href="/assets/img/favicon.ico")
2016-03-31 17:24:48 +03:00
if SECTION == "api"
link(href="/assets/css/style_green.css?v#{V_CSS}" rel="stylesheet")
2016-10-31 21:04:15 +03:00
else
link(href="/assets/css/style.css?v#{V_CSS}" rel="stylesheet")
2016-03-31 17:24:48 +03:00
2016-10-31 21:04:15 +03:00
body
include _includes/_svg
2016-10-31 21:04:15 +03:00
include _includes/_navigation
2016-03-31 17:24:48 +03:00
if !landing
2016-10-31 21:04:15 +03:00
include _includes/_page-docs
2016-03-31 17:24:48 +03:00
2016-10-03 21:19:13 +03:00
else
2016-10-31 21:04:15 +03:00
main!=yield
include _includes/_footer
2017-01-01 14:45:37 +03:00
include _includes/_scripts