-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlayout.html
167 lines (154 loc) · 5.98 KB
/
layout.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
<!DOCTYPE html>
<html lang="zh-CN">
{% if themeConfig.pageBackground %}
<style>
html {
background-image: url('{{themeConfig.pageBackground}}');
background-size: cover;
background-repeat: no-repeat;
background-size: cover;
background-position: right top;
background-attachment: fixed;
}
</style>
{% endif %}
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no">
<title>{% block title %}{% endblock %}</title>
<link rel="icon" href="{{options.favicon_url |default('/static/img/firekylin.jpg')}}">
{% if options.favicon %}
<link rel="shortcut icon" href="{{options.favicon}}" type="image/x-icon">{% endif %}
<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="/rss.html">
<link rel=search type="application/opensearchdescription+xml" href="/opensearch.xml" title="{{ options.title }}">
{% if options.keywords %}
<meta name="keywords" content="{{options.keywords}}">{% endif %}
{% if options.description %}
<meta name="description" content="{{options.description}}">{% endif %}
{%- block headers %}{% endblock -%}
{% set lscookie = 'lscookie'%}
<link rel="stylesheet" href="/theme/{{options.theme}}/res/css/all.css" type="text/css" data-ls="css_firekylin">
{% if themeConfig.sidebarBackground or themeConfig.sidebarBackgroundColor or themeConfig.customCSS or themeConfig.sidebarColor %}
<style>
{% if themeConfig.sidebarBackground or themeConfig.sidebarBackgroundColor %}
{% if themeConfig.sidebarBackground %}
#sidebar {
background-image: linear-gradient(rgba(27, 27, 27, 0.24), rgba(27, 27, 27, 0.24)), url('{{themeConfig.sidebarBackground}}');
background-size:cover;
}
{% endif %}
{% if themeConfig.sidebarBackgroundColor %}
#sidebar {
background-color: {{ themeConfig.sidebarBackgroundColor}}; }
{% endif %}
{% endif %}
{% if themeConfig.sidebarColor %}
#sidebar .profile span,
#sidebar .buttons li a,
#sidebar .buttons li a:hover {
color: {{themeConfig.sidebarColor}};
}
{% endif %}
{% if themeConfig.customCSS %}
{{themeConfig.customCSS | safe}}
{% endif %}
</style>
{% endif %}
</head>
<body>
<nav id="sidebar" class="behavior_1">
<div class="wrap">
<div class="profile">
<a href="/">
<img src="{{options.logo_url|default('/static/img/firekylin.jpg')}}" alt="{{options.title}}">
</a>
<span>{{options.title}}</span>
</div>
<ul class="buttons">
{% for nav in navigation %}
<li>
<a class="" href="{{nav.url}}" title="{{nav.label}}" style="padding-left: 0">
<div class="nav-buttons-box">
<div class="nav-buttons-box-inner">
<i class="iconfont icon-{{nav.option}}"></i>
<span>{{nav.label}}</span>
</div>
</div>
</a>
</li>
{% endfor %}
</ul>
<ul class="buttons">
<li>
{% if options.github_url %}
<a class="inline" rel="nofollow" target="_blank" href="{{options.github_url}}">
<i class="iconfont icon-github-v" title="GitHub"></i>
</a>
{% endif %}
{% if options.twitter_url %}
{% if options.twitter_url.indexOf('twitter.com') > -1 %}
<a class="inline" rel="nofollow" target="_blank" href="{{options.twitter_url}}">
<i class="iconfont icon-twitter-v" title="Twitter"></i>
</a>
{% endif %}
{% if options.twitter_url.indexOf('weibo.com') > -1 %}
<a class="inline" rel="nofollow" target="_blank" href="{{options.twitter_url}}">
<i class="iconfont icon-weibo" title="weibo"></i>
</a>
{% endif %}
{% endif %}
<a class="inline" href="/rss.html">
<i class="iconfont icon-rss-v" title="RSS"></i>
</a>
<a class="inline" href="/search.html">
<i class="iconfont icon-search" title="Search"></i>
</a>
</li>
</ul>
<ul class="tag-box">
{% for tag in tags %}
<a class="tag-button" href="/tag/{{tag.pathname}}" data-tag="{{tag.name}}">{{tag.name}}({{tag.count}})</a>
{% endfor %}
</ul>
</div>
</nav>
<div id="header">
<div class="btn-bar"><i></i></div>
<h1><a href="/">{{options.title}}</a></h1>
<a class="me" href="/about/"><img src="{{options.logo_url|default('/static/img/firekylin.jpg')}}"
alt="{{options.title}}"></a>
</div>
<div id="sidebar-mask"></div>
<div id="main">
<div id="main-content" style="padding: 30px 30px; background: rgba(0,0,0,0.3);">
{% block content %}
{% endblock %}
<footer id="footer" class="inner">
© {{ currentYear }} - {{options.title}}
{% if options.miitbeian or options.mpsbeian %}
{% if options.miitbeian %}
- <a target="_blank" rel="nofollow" class="external beian"
href="http://beian.miit.gov.cn">{{options.miitbeian}}</a>
{% endif %}
{% if options.mpsbeian %}
- <a target="_blank" rel="nofollow" class="external beian"
href="http://www.beian.gov.cn/">{{options.mpsbeian}}</a>
{% endif %}
{%else%}
- <a href="/">{{ctx.hostname}}</a>
{% endif %}
<br />
Powered by <a target="_blank" href="https://thinkjs.org">ThinkJS</a> & <a target="_blank"
rel="nofollow" class="external" href="https://firekylin.org">FireKylin {{VERSION}}</a>
</footer>
</div>
</div>
<script src="/theme/{{options.theme}}/res/js/hometheme.js" ></script>
<script src="/theme/{{options.theme}}/res/js/firekylin.js" data-ls="js_firekylin"></script>
{% if options.analyze_code %}
{{options.analyze_code | safe}}
{% endif %}
{% if themeConfig.customJS %}
<script>{{ themeConfig.customJS | safe }}</script>{% endif %}
</body>
</html>