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-31 18:04:15 +00:00
|
|
|
title
|
|
|
|
if SECTION == "docs" && SUBSECTION && SUBSECTION != "index"
|
|
|
|
| #{title} | #{SITENAME} #{SUBSECTION == "api" ? "API" : "Usage"} Documentation
|
|
|
|
|
|
|
|
else if SECTION != "index"
|
|
|
|
| #{title} | #{SITENAME}
|
|
|
|
|
|
|
|
else
|
|
|
|
| #{SITENAME} - #{SLOGAN}
|
2016-10-03 18:19:13 +00: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('/')}")
|
|
|
|
meta(property="og:title" content=title)
|
|
|
|
meta(property="og:description" content=description)
|
2016-10-31 18:04:15 +00:00
|
|
|
meta(property="og:image" content="#{SITE_URL}/assets/img/social#{(SECTION == 'docs') ? '_docs' : ''}.jpg")
|
2016-10-03 18:19:13 +00:00
|
|
|
|
|
|
|
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)
|
2016-10-31 18:04:15 +00:00
|
|
|
meta(name="twitter:image" content="#{SITE_URL}/assets/img/social#{(SECTION == 'docs') ? '_docs' : ''}.jpg")
|
2016-10-03 18:19:13 +00: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 14:24:48 +00:00
|
|
|
|
2016-10-31 18:04:15 +00:00
|
|
|
if SUBSECTION == "usage"
|
|
|
|
link(href="/assets/css/style_red.css?v1" rel="stylesheet")
|
2016-03-31 14:24:48 +00:00
|
|
|
|
2016-10-31 18:04:15 +00:00
|
|
|
else
|
|
|
|
link(href="/assets/css/style.css?v1" rel="stylesheet")
|
2016-03-31 14:24:48 +00:00
|
|
|
|
2016-10-31 18:04:15 +00:00
|
|
|
body
|
|
|
|
include _includes/_navigation
|
2016-03-31 14:24:48 +00:00
|
|
|
|
2016-10-31 18:04:15 +00:00
|
|
|
if SECTION == "docs"
|
|
|
|
include _includes/_page-docs
|
2016-03-31 14:24:48 +00:00
|
|
|
|
2016-10-03 18:19:13 +00:00
|
|
|
else
|
2016-10-31 18:04:15 +00:00
|
|
|
main!=yield
|
|
|
|
include _includes/_footer
|
|
|
|
|
|
|
|
each script in SCRIPTS
|
|
|
|
script(src="/assets/js/" + script + ".js?v1", type="text/javascript")
|
2016-03-31 14:24:48 +00:00
|
|
|
|
2016-10-31 18:04:15 +00:00
|
|
|
if environment == "deploy"
|
|
|
|
script
|
|
|
|
| window.ga=window.ga||function(){
|
|
|
|
| (ga.q=ga.q||[]).push(arguments)}; ga.l=+new Date;
|
|
|
|
| ga('create', '#{ANALYTICS}', 'auto'); ga('send', 'pageview');
|
2016-03-31 14:24:48 +00:00
|
|
|
|
2016-10-31 18:04:15 +00:00
|
|
|
script(async src="https://www.google-analytics.com/analytics.js")
|