Summary Files Commits Branches @commit @diff @stats
path: root / docs / src / _layout / _layout.pug
blob: 9da2fb21e3fe30964442b0e7832872c898916634 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
block global
  - var domain = 'https://kingajax.github.io/Spectre-Dark/'
  - var url = domain

block variables
  - var slug = ''
  - var parent = ''
  - var title = 'Spectre.css - A Lightweight, Responsive and Modern CSS Framework'
  - var description = 'Spectre.css CSS Framework is a lightweight, responsive and modern CSS framework for faster and extensible development. Spectre provides basic styles for typography and elements, flexbox based responsive layout system, pure CSS components and utilities with best practice coding and consistent design language.'

if slug == parent
  if slug == 'index'
    - var url = domain
  else
    - var url = domain + slug + '.html'
else
  - var url = domain + parent + '/' + slug + '.html'

doctype html
html(lang='en')
  head
    title= title
    meta(charset='utf-8')
    meta(name='robots' content='index, follow')
    meta(name='viewport' content='width=device-width, initial-scale=1.0, shrink-to-fit=no')
    meta(http-equiv='x-ua-compatible' content='ie=edge')
    meta(name='description' content= description)
    meta(name='author' content='Yan Zhu')
    meta(property='og:url' content= url)
    meta(property='og:title' content= title)
    meta(property='og:description' content= description)
    meta(name='twitter:card' content='summary')
    meta(name='twitter:site' content='@spectrecss')
    meta(name='twitter:creator' content='@picturepan2')
    if slug != parent
      link(rel='shortcut icon' href='../img/favicons/favicon.ico')
      link(rel='icon' href='../img/favicons/favicon.png')
      link(rel='stylesheet' href='../dist/spectre.min.css')
      link(rel='stylesheet' href='../dist/spectre-icons.min.css')
      link(rel='stylesheet' href='../dist/spectre-exp.min.css')
      link(rel='stylesheet' href='../dist/docs.min.css')
    else
      link(rel='shortcut icon' href='img/favicons/favicon.ico')
      link(rel='icon' href='img/favicons/favicon.png')
      link(rel='stylesheet' href='dist/spectre.min.css')
      link(rel='stylesheet' href='dist/spectre-icons.min.css')
      link(rel='stylesheet' href='dist/spectre-exp.min.css')
      link(rel='stylesheet' href='dist/docs.min.css')
    link(rel='canonical' href= url)

  body
    block content