This repository has been archived by the owner on Jan 10, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
base.jade
executable file
·56 lines (50 loc) · 1.81 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
html
head
meta(content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0", name="viewport")
meta(content="yes", name="apple-mobile-web-app-capable")
meta(content="black", name="apple-mobile-web-app-status-bar-style")
meta(content="telephone=no", name="format-detection")
meta(name="renderer", content="webkit")
title= post.title or site.title
+load('/template/basic.scss,/template/style.scss')
+load('/template/js/scripts.js')
body
#sidebar
#avatar
a(href='/')
.border
.img_container
img(src=site.avatar, alt=site.title)
.title
a(href='/')= site.title
ul
li
+a_with_selected("/archive", 'Archive')
for category in get_data(type='folder', level=1, min_posts_count=1, with_page=False, limit=10)
li
+a_with_selected("/category/" + category.path, category.title)
if has('images')
li
a(href="/album") Album
if not has('posts')
+redirect('/album')
pages = get_data(status='pages', type='post', limit=5, with_page=False, sort='position')
for page_p in pages
li
+a_with_selected("/"+page_p.path, page_p.filename.split('.')[0].title())
.clear
.search-bar
input#search-bar(type='text', placeholder="搜索", value=request.args.s, onkeyup="if (event.keyCode == 13) search();")
#main
#banner
block banner
span="一个程序员的自娱自乐 "
span.date= now.format('%b,%d %Y')
span.sub_info today
block content
#footer
| © 2015 {{ site.title }}
| | Coded by <a href="http://sync.sh" target="_blank">YCF</a>
| | Inspired by <a href="https://svbtle.com/" target="_blank">Svbtle</a>
| | Powered by <a href="https://www.farbox.com" target="_blank">FarBox</a>
| | <a href="/template" target="_blank">Clone Theme</a></section>