Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_layout.pug « _layout « src « docs - github.com/picturepan2/spectre.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 53dca0e5e002f822cd81b8ed344a3babc93a1aae (plain)
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
53
54
55
56
57
block global
  - var domain = 'https://picturepan2.github.io/spectre/'
  - var url = domain

block variables
  - var slug = ''
  - var parent = ''
  - 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 == 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')
    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

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