-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpelicanconf.py
86 lines (68 loc) · 2.54 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
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
AUTHOR = 'Justas Ažna'
SITENAME = 'reederz'
SITEURL = 'http://reederz.com'
PATH = 'content'
TIMEZONE = 'Europe/Copenhagen'
DEFAULT_LANG = 'en'
THEME = '../pelican-themes/voidy-bootstrap'
PLUGIN_PATHS = ['../pelican-plugins']
PLUGINS = ['sitemap', 'tag_cloud']
STATIC_PATHS = ['images', 'extra', 'docs']
EXTRA_PATH_METADATA = {'extra/CNAME': {'path': 'CNAME'},
'extra/keybase.txt': {'path': 'keybase.txt'}}
# voidy-bootstrap specific
# SITESUBTITLE ='Sub-title that goes underneath site name in jumbotron.'
SITETAG = "homepage"
STYLESHEET_FILES = ("pygment.css", "voidybootstrap.css",)
CUSTOM_ARTICLE_FOOTERS = ("taglist.html",)
CUSTOM_SIDEBAR_MIDDLES = ("sb_links.html", "sb_taglist.html")
# Using cosmo theme from bootswatch
BOOTSTRAP_STYLESHEET = 'bootstrap.min.css'
# CUSTOM_SCRIPTS_ARTICLE = "sharing_scripts.html"
SIDEBAR = "sidebar.html"
SIDEBAR_HIDE_CATEGORIES = True
# end of voidy-bootstrap specific
TYPOGRIFY = True
SITEMAP = {
'format': 'xml',
'priorities': {
'articles': 0.5,
'indexes': 0.5,
'pages': 0.5
},
'changefreqs': {
'articles': 'monthly',
'indexes': 'daily',
'pages': 'monthly'
}
}
# Feed generation is usually not desired when developing
FEED_ALL_ATOM = 'feeds/all.atom.xml'
CATEGORY_FEED_ATOM = 'feeds/%s.atom.xml'
CATEGORY_FEED_ATOM = None
TRANSLATION_FEED_ATOM = None
AUTHOR_FEED_ATOM = None
AUTHOR_FEED_RSS = None
LINKS = (('freedom.press', 'https://freedom.press/'),
('CyanogenMod', 'http://www.cyanogenmod.org/'),
('Tor Browser', 'https://www.torproject.org'),
('Open Whisper Systems', 'https://whispersystems.org/'),
('Project Danube', 'http://projectdanube.org/'),
('Play Digital Signage', 'https://playsignage.com/'),
('Arch Linux', 'https://www.archlinux.org/'),
('My Toptal profile', 'https://www.toptal.com/resume/justas-azna#select-just-spectacular-programmers-now'),)
# Social widget
SOCIAL = (('keybase.io/reederz', 'https://keybase.io/reederz',
'fa fa-lock fa-fw fa-lg'),
('github', 'https://github.com/reederz',
'fa fa-github-square fa-fw fa-lg'),
('twitter', 'https://twitter.com/reederz',
'fa fa-twitter-square fa-fw fa-lg'),
('medium', 'https://medium.com/@reederz',
'fa fa-medium fa-fw fa-lg'),)
DEFAULT_PAGINATION = 10
# Uncomment following line if you want document-relative URLs when developing
RELATIVE_URLS = True