-
Notifications
You must be signed in to change notification settings - Fork 22
/
base.jade
executable file
·90 lines (89 loc) · 2.7 KB
/
base.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
html
+i18n('Home', '首页', 'zh_cn')
+i18n('Albums', '相册', 'zh_cn')
+i18n('Categories', '分类', 'zh_cn')
+i18n('Archive', '归档', 'zh_cn')
+i18n('Tags', '标签', 'zh_cn')
+i18n('About', '关于', 'zh_cn')
+i18n('Links', '友链', 'zh_cn')
head
meta(http-equiv="Content-Type", content="text/html; charset=UTF-8")
block title
title= post.title or site.title
+mobile_meta()
meta(name="author", content="CaiCai,[email protected]")
meta(name="keywords", content=site.configs.keywords.escaped)
meta(name="description", content=site.raw_content.escaped)
link(rel="shortcut icon", href="/template/style/images/favicon.png",type="image/x-icon")
+load('font')
+get_resource("blog_basic.css")
+load('/template/style/css/style.scss')
body
.sidebar.animated.fadeInDown
.logo-title
.title
img(src="/template/style/images/[email protected]",style="width:127px;")
h3(title="")
a(href="/") {{ site.title }}
if site.raw_content
.description
p= '%s' % site.raw_content[:100]
ul.social-links
if site.configs.twitter
li
a(href="https://twitter.com/{{site.configs.twitter}}")
i.fa.fa-twitter
if site.configs.instagram
li
a(href="http://instagram.com/{{site.configs.instagram}}")
i.fa.fa-instagram
if site.configs.dribbble
li
a(href="https://dribbble.com/{{site.configs.dribbble}}")
i.fa.fa-dribbble
if site.configs.weibo
li
a(href="http://weibo.com/{{site.configs.weibo}}")
i.fa.fa-weibo
.footer
a(target="_blank", href="http://{{request.domain}}")
span Designed by
a(href="https://www.caicai.me") CaiCai
.by_farbox
a(href="http://www.farbox.com", target="_blank") Proudly published with Farbox!
.main
.page-top.animated.fadeInDown
.nav
li
if request.url_without_host=='/'
a.current(href="/") Home
else
a(href="/") Home
li
if request.url_without_host=='/about'
a.current(href="/about") About
else
a(href="/about") About
li
if request.url_without_host=='/archive'
a.current(href="/archive") Archive
else
a(href="/archive") Archive
li
if request.url_without_host=='/links'
a.current(href="/links") Links
else
a(href="/links") Links
.information
.back_btn
li
if post
a.fa.fa-chevron-left(onclick="window.history.go(-1)")
else
a.fa.fa-chevron-left(onclick="window.history.go(-1)",style="display:none;")
.avatar
img(src=site.avatar)
block content
+load('jquery')
+load("/template/style/js/jquery-migrate-1.2.1.min.js")
+load("/template/style/js/jquery.appear.js")