forked from majestrate/i2p.rocks.blog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpelicanconf.py
108 lines (79 loc) · 2.17 KB
/
pelicanconf.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
105
106
107
108
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
AUTHOR = u'Jeff'
SITENAME = u'i2p.rocks -- blog about i2p and other stuff'
SITEURL = '/blog'
PATH = 'content'
TIMEZONE = 'UTC'
DEFAULT_LANG = u'en'
# Feed generation is usually not desired when developing
FEED_ALL_ATOM = None
CATEGORY_FEED_ATOM = None
TRANSLATION_FEED_ATOM = None
AUTHOR_FEED_ATOM = None
AUTHOR_FEED_RSS = None
# Blogroll
LINKS = (('I2P', 'https://geti2p.net/'),)
SOCIAL = (('github', 'https://github.com/majestrate'),
('twitter', 'https://twitter.com/ampernand'))
# markdown extensions
MD_EXTENSIONS = ['codehilite(linenums=False,guess_lang=True,use_pygments=True)', 'extra']
DEFAULT_PAGINATION = 3
# Uncomment following line if you want document-relative URLs when developing
RELATIVE_URLS = True
# begin custom configuration
# path to plugins directory
PLUGINS_PATHS = ['pelican-plugins']
# plugins in use
PLUGINS = [
]
# theme name
THEME = 'i2p.rocks-theme'
# keywords for meta tag
KEYWORDS = [
"i2p",
"development",
"nntpchan",
"livechan"
]
# css files in order of include
CSS_FILES = []
# css theme in use
css_theme = 'simplecss'
# extra css files
css_theme_stylesheets = ['github.css']
# local style override
css_local_override = 'local.css'
# js script files
JS_FILES = []
# do we want to use jquery?
use_jquery = False
# jquery version to use
jquery_version = "2.2.1"
# jquery related script files
# in order of include
jquery_jsfiles = [
"jquery-{}.min.map",
"jquery-{}.min.js"
]
# theme related script files
theme_jsfiles = [
"zjs.min.js",
"simplecss.min.js"
]
# first append jquery files as needed if enabled
if use_jquery:
# if we want to use jquery append all the required jquery files
for js in jquery_jsfiles:
JS_FILES.append(js.format(jquery_version))
# append css theme script files
for js in theme_jsfiles:
JS_FILES.append(js)
# add css theme to css stylesheets
CSS_FILES.append('{}.min.css'.format(css_theme))
# append extra theme stylesheets to css stylesheets
for css in css_theme_stylesheets:
CSS_FILES.append(css)
# add local site stylesheet override
CSS_FILES.append(css_local_override)