Summary Files Commits Branches @commit @diff @stats
path: root / docs / src / _layout.pug
blob: 511d798f87d3fd8ef10394cae8fc949ccd221a55 (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
block global
  - var domain = 'https://picturepan2.github.io/spectre/'

block variables
  - var slug = ''
  - var title = 'Spectre.css - A Lightweight, Responsive and Modern CSS Framework'
  - var description = 'Spectre.css 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
  - var url = domain + slug + '.html'
else 
  - var url = domain

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')
    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

    script.
      (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
            (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
          m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
      })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');

      ga('create', 'UA-2702768-8', 'auto');
      ga('send', 'pageview');