forked from mapleobserver/FarBox-Template-GreyshadeM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbase.html
202 lines (186 loc) · 8.53 KB
/
base.html
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en-us">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>{% block title %}{{ site.configs.title }} {% endblock %}</title>
<!-- http://t.co/dKP3o1e -->
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel='alternate' type='application/rss+xml' title='atom 1.0' href='/feed' />
<link href="/favicon.png" rel="shortcut icon">
{% if site.configs.highlight %}
<link href="/template/css/highlight.css" media="screen, projection" rel="stylesheet" type="text/css">
{% endif %}
<link href="/template/css/screen.css" media="screen, projection" rel="stylesheet" type="text/css">
<link href="/template/css/style.css" rel="stylesheet" type="text/css">
<!--[if lt IE 9]><script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<link rel="stylesheet" href="/template/css/fancybox/jquery.fancybox.css" type="text/css" media="screen" />
<script type="text/javascript" src="/template/css/fancybox/jquery.fancybox.pack.js"></script>
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400italic,400,700' rel='stylesheet' type='text/css'>
<!--Fonts from Google"s Web font directory at http://google.com/webfonts -->
<link href="http://fonts.googleapis.com/css?family=PT+Serif:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css">
<link href="http://fonts.googleapis.com/css?family=PT+Sans:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css">
<link href="http://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
<script type="text/javascript">
$(document).ready(function() {
$("a[href$='.jpg'],a[href$='.jpeg'],a[href$='.png'],a[href$='.gif'],a[href$='.bmp'],a[href$='.JPG'],a[href$='.JPEG'],a[href$='.PNG'],a[href$='.GIF'],a[href$='.BMP']").attr('rel','group-images').fancybox({
openEffect : 'none',
closeEffect : 'none'
});
});
</script>
</head>
<body>
<div class="container">
<div class="left-col">
<div class="intrude-less">
<header id="header" class="inner">
<div class="profilepic">
{% if site.configs.gravatar %}
<script src="/template/js/md5.js"></script>
<script type="text/javascript">
document.write("<img src='http://0.gravatar.com/avatar/" + MD5("{{ site.configs.gravatar }}") + "?s=160' alt='Profile Picture' style='width: 160px;' id='ProfilePicture'");
</script>
</br>
{% endif %}
</div>
{% if site.configs.weixin %}
<div class="ProfileWeixin">
<img src="/images/social/weixinqrcode.png" alt="微信二维码" style="width: 160px; border-radius:0%; -moz-border-radius:0%; -webkit-border-radius:0%; display: none" id="ProfileWeixin" />
<script type="text/javascript">
function weixin_mouseOver()
{
document.getElementById( "ProfilePicture" ).style.display = "none"
document.getElementById( "ProfileWeixin" ).style.display = ""
}
function weixin_mouseOut()
{
document.getElementById( "ProfilePicture" ).style.display = ""
document.getElementById( "ProfileWeixin" ).style.display = "none"
}
</script>
</div>
{% endif %}
{% if site.configs.title %}
<h1><a href="/">{{ site.configs.title }}</a></h1>
{% endif %}
{% if site.configs.subtitle %}
<p class="subtitle">{{ site.configs.subtitle }}</p>
{% endif %}
<nav id="main-nav">
<ul class="main-navigation">
<li><a href="/">首页</a></li>
{% if has('posts') %}
<li><a href="/category">分类</a></li>
<li><a href="/archive">存档</a></li>
{% if site.tags %}
<li><a href="/tags">标签</a></li>
{% endif %}
{% endif %}
{% if has('images') and has('posts')%}
<li><a href="/folder/">相册</a></li>
{% endif %}
{% if has('isaid.md') %}
{% set isaid_post = get_post('isaid.md') %}
<li><a href="/isaid.md">{{ isaid_post.title }}</a></li>
{% endif %}
{% if has('links.md') %}
<li><a href="/links.md">链接</a></li>
{% endif %}
{% if has('about.md') %}
<li><a href="/about.md">关于</a></li>
{% endif %}
</ul>
</nav>
<nav id="sub-nav">
<div class="social">
{% if site.configs.facebook %}
<a class="facebook" href="{{ site.configs.facebook }}" title="Facebook">Facebook</a>
{% endif %}
{% if site.configs.google %}
<a class="google" href="{{ site.configs.google }}" title="Google+">Google+</a>
{% endif %}
{% if site.configs.twitter %}
<a class="twitter" href="{{ site.configs.twitter }}" title="Twitter">Twitter</a>
{% endif %}
{% if site.configs.github %}
<a class="github" href="{{ site.configs.github }}" title="GitHub">GitHub</a>
{% endif %}
{% if site.configs.linkedin %}
<a class="linkedin" href="{{ site.configs.linkedin }}" title="Linkedin">Linkedin</a>
{% endif %}
{% if site.configs.pinterest %}
<a class="pinterest" href="{{ site.configs.pinterest }}" title="Pinterest">Pinterest</a>
{% endif %}
{% if site.configs.delicious %}
<a class="delicious" href="{{ site.configs.delicious }}" title="Delicious">Delicious</a>
{% endif %}
{% if site.configs.pinboard %}
<a class="pinboard" href="{{ site.configs.pinboard }}" title="Pinboard">Pinboard</a>
{% endif %}
{% if site.configs.instagram %}
<a class="instagram" href="{{ site.configs.instagram }}" title="Instagram">Instagram</a>
{% endif %}
{% if site.configs.weibo %}
<a class="weibo" href="{{ site.configs.weibo }}" title="新浪微博">新浪微博</a>
{% endif %}
{% if site.configs.qq %}
<a class="qq" href="{{ site.configs.qq }}" title="腾讯微博">腾讯微博</a>
{% endif %}
{% if site.configs.qq2 %}
<a class="qq2" href="{{ site.configs.qq2 }}" title="QQ" target="_blank">QQ</a>
{% endif %}
{% if site.configs.qqqun %}
<a class="qqqun" href="{{ site.configs.qqqun }}" title="{{ site.configs.qqqunname }}" target="_blank">{{ site.configs.qqqunname }}"</a>
{% endif %}
{% if site.configs.weixin %}
<a class="weixin" href="/images/social/weixinqrcode.png" title="{{ site.configs.weixin }}" target="_blank" onmouseover="weixin_mouseOver()" onmouseout="weixin_mouseOut()">微信</a>
<script type="text/javascript">
$(document).ready(function(){
$(".weixin").removeAttr("rel");
});
</script>
{% endif %}
{% if site.configs.douban %}
<a class="douban" href="{{ site.configs.douban }}" title="豆瓣">豆瓣</a>
{% endif %}
{% if site.configs.fanfou %}
<a class="fanfou" href="{{ site.configs.fanfou }}" title="饭否">饭否</a>
{% endif %}
{% if site.configs.zhihu %}
<a class="zhihu" href="{{ site.configs.zhihu }}" title="知乎">知乎</a>
{% endif %}
{% if site.configs.email %}
<a class="email" href="{{ site.configs.email }}" title="EMail">EMail</a>
{% endif %}
{% if site.configs.rss %}
<a class="rss" href="{{ site.configs.rss }}" title="RSS">RSS</a>
{% endif %}
</div>
</nav>
<br/>
{% if site.configs.author %}
<section>
<h2>关于作者</h2>
<p>{{ site.configs.authorinfo }}</p>
</section>
{% endif %}
</br>
{% if site.configs.something %}
<section>
{% if site.configs.somethingtitle %}
<h2>{{ site.configs.somethingtitle }}</h2>
{% endif %}
<p>{{ site.configs.something }}</p>
</section>
{% endif %}
</header>
</div>
</div>
{% block content %}
{% endblock %}
</div>
</body>
</html>