-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlayout.jade
66 lines (64 loc) · 2.44 KB
/
layout.jade
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
58
59
60
61
62
63
64
65
66
- var static = static || '/candy-theme-flat';
doctype html
html(ng-app="candy")
head
meta(charset="utf-8")
meta(name="viewport",content="width=device-width, initial-scale=1.0")
meta(name="generator",content="#{sys.name}",version="#{sys.version}")
block meta
meta(name="keywords",content="#{site.name}")
meta(name="description",content="#{site.desc}")
title
block title
|主页 - #{site.name}
link(rel='shortcut icon',type="image/x-icon",href="#{static}/images/favicon.png")
link(rel='stylesheet', href='#{static}/stylesheets/style.css')
link(rel='stylesheet', href='#{static}/stylesheets/libs/duoshuo.css')
link(rel='stylesheet', href='#{static}/stylesheets/libs/scrollup.css')
block css
body
block header
include header
block banner
include banner
#content.content
#content-inner.content-inner.container.clearfix
.row
block main
.col-lg-9.main-content
block content
.col-lg-3.sidebar
block sidebar
include sidebar
block footer
#footer.footer
block hitokoto
include hitokoto
#footer-inner.footer-inner.container.clearfix.copyright © #{new Date().getFullYear()} #{site.name}.
.poweredby.pull-right Powered by
a(href="https://github.com/turingou/candy",title="npm install candy").candy #{sys.name}
|v#{sys.version}
//- libs
script(src="#{static}/javascripts/lib/jquery-1.10.2.min.js")
script(src="#{static}/javascripts/lib/bootstrap.min.js")
script(src="#{static}/javascripts/lib/angular.min.js")
script(src="#{static}/javascripts/lib/angular-resource.min.js")
//- scrollUp
script(src="#{static}/javascripts/lib/jquery.scrollUp.min.js")
script(src="#{static}/javascripts/scrollUp.js")
//- angular app
script(src="#{static}/javascripts/store.js")
script(src="#{static}/javascripts/candy.js")
//- duoshuo comments configs
script.
var duoshuoQuery = {}
duoshuoQuery.sso = {}
duoshuoQuery.short_name = "#{site.duoshuo.short_name}";
duoshuoQuery.theme = 'none';
duoshuoQuery.sso.login = "#{url}/sign/in";
duoshuoQuery.sso.logout = "#{url}/sign/out";
script(type="text/javascript",src="http://static.duoshuo.com/embed.js",charset="UTF-8",async)
//- hitokoto
script(src="#{static}/javascripts/hitokoto.js")
//- custom js
block js