mirror of https://github.com/explosion/spaCy.git
60 lines
2.0 KiB
Plaintext
60 lines
2.0 KiB
Plaintext
//- 💫 GLOBAL LAYOUT
|
|
|
|
include _includes/_mixins
|
|
|
|
- title = IS_MODELS ? LANGUAGES[current.source] || title : title
|
|
- social_img = SITE_URL + "/assets/img/social/preview_" + (preview || ALPHA ? "alpha" : "default") + ".jpg"
|
|
|
|
doctype html
|
|
html(lang="en")
|
|
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
|
|
|
|
else if SECTION != "index"
|
|
| #{title} | #{SITENAME}
|
|
|
|
else
|
|
| #{SITENAME} - #{SLOGAN}
|
|
|
|
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} - spaCy")
|
|
meta(property="og:description" content=description)
|
|
meta(property="og:image" content=social_img)
|
|
|
|
meta(name="twitter:card" content="summary_large_image")
|
|
meta(name="twitter:site" content="@" + SOCIAL.twitter)
|
|
meta(name="twitter:title" content="#{title} - spaCy")
|
|
meta(name="twitter:description" content=description)
|
|
meta(name="twitter:image" content=social_img)
|
|
|
|
link(rel="shortcut icon" href="/assets/img/favicon.ico")
|
|
link(rel="icon" type="image/x-icon" href="/assets/img/favicon.ico")
|
|
|
|
if SECTION == "api"
|
|
link(href="/assets/css/style_green.css?v#{V_CSS}" rel="stylesheet")
|
|
|
|
else
|
|
link(href="/assets/css/style.css?v#{V_CSS}" rel="stylesheet")
|
|
|
|
body
|
|
include _includes/_svg
|
|
include _includes/_navigation
|
|
|
|
if !landing
|
|
include _includes/_page-docs
|
|
|
|
else
|
|
main!=yield
|
|
include _includes/_footer
|
|
|
|
include _includes/_scripts
|