-
Notifications
You must be signed in to change notification settings - Fork 0
/
base.jade
54 lines (54 loc) · 1.55 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
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
+mobile_meta()
meta(name="keywords", content=site.configs.keywords.escaped)
meta(name="description", content=site.raw_content.escaped)
block title
title= request.args.s or post.title or tags.join('+') or category.title or site.title
load('/template/static/basic.css /template/static/style.css')
body
header
.header_wrapper
h1.sitetitle
a(href='/',title=raw_content)=site.title
nav
ul
li
a(href="/")= _('Home')
if has('images')
li
a(href='/album')= _('Albums')
if not has('posts')
+redirect('/album')
if has('categories')
li
a(href='/categories')= _('Categories')
if has('posts')
li
a(href='/archive')= _('Archive')
if site.tags
li
a(href='/tags')= _('Tags')
pages = get_data(status='pages', type='post', limit=5, with_page=False, sort='position')
for page_p in pages
li
a(href="/{{page_p.path}}")= _(page_p.filename.split('.')[0].title())
li
a(href="/feed") RSS
.clearfix
#container
block content
.clearfix
footer
span
a(href="https://www.farbox.com", target="_blank") Powered By FarBox.com
span
a(href="http://github.com/imsuwj/mixedpaper", target="_blank") Designer WayJam
span= "©2013-2015 "+ site.title