This repository has been archived by the owner on Aug 4, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
104 lines (84 loc) · 2.13 KB
/
config.py
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
#!/usr/bin/env python3
#-*- encoding: utf-8 -*-
import time
import os
__AUTHER__ = "Virink <[email protected]>"
__BLOG__ = "https://www.virzz.com"
__GITHUB__ = "https://github.com/virink"
__NAME__ = "MWEBLOG"
__VERSION__ = "0.1"
DESCRIPTION = "A tools for MWeb to generate website"
BLOG_ROOT = "/Users/virink/Workspace/Blog"
# Document
DOC_ROOT = "/Users/virink/Documents/MyDocs"
DOCS = {
"db": DOC_ROOT + "/mainlib.db",
"doc": DOC_ROOT + "/docs/",
"meta": DOC_ROOT + "/metadata/",
"blog_cat": ["Blog", "test"]
}
SUBMIT_LINK_BAIDU_TOKEN = 'xhWDpEdlGfgLkbsr'
# docs
# metadata
# Site
TITLE = "Virink's Blog"
SUBTITLE = "Let life be beautiful like summer flowers, and death like autume leaves."
DESCRIPTION = "Virink的小站,记录杂文与分享一些技术文章"
KEYWORDS = "PHP,CODE,AUDIT,CTF,Writeup,Sec,Virink,代码审计,技术博客"
AUTHOR = "Virink"
EMAIL = "[email protected]"
LANGUAGE = "zh-CN"
TIMEZONE = "Asia/Shanghai"
# URL
URL = 'https://www.virzz.com'
COS = "img.virzz.com"
ROOT = "/"
# strftime and string format
PERMALINK = "/%Y/%m/%d/{title}.html"
# Directory
PUBLIC_DIR = "public"
ARCHIVES_DIR = "archives"
TAGS_DIR = "tags"
PUBLIC_PATH = os.path.join(BLOG_ROOT, PUBLIC_DIR)
# Date / Time format
DATE_FORMAT = "%Y-%m-%d"
TIME_FORMAT = "%H:%M:%S"
DATE_TIME_FORMAT = "%Y-%m-%d %H:%M:%S"
SITEMAP_FORMAT = "%Y-%m-%dT%H:%M:%S+08:00"
# Pagination
PAGINATION = {
"per": 10,
"dir": "page"
}
# Themes
THEME = "default"
# Sitemap
SITEMAP = {
"path": "sitemap",
"template": "sitemap"
}
# Feed
FEED = {
"num": 50,
"path": ["feed", "atom"],
"template": "feed"
}
# Social
SOCIAL = {
"github": "virink",
"twitter": "virinkz",
"telegram": "virink"
}
AUTHFILE = [
'.gitignore', 'google02996eb2dd5b9b34.html', 'qcloud_cdn.html', 'robots.txt'
]
# Deployment
DEPLOY = {
"type": "git",
"repository": "[email protected]:virink/virink.github.io.git",
# "repository": "[email protected]:virink/testblog.git",
"branch": "master",
"message": "Updated %s By %s %s" % (time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()), __NAME__, __VERSION__)
}
if __name__ == '__main__':
print("Error")