-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpelicanconf.py
104 lines (79 loc) · 2.95 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
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
AUTHOR = u'John Hogenmiller'
AUTHOR_EMAIL = u'[email protected]'
SITENAME = u'ytjohn'
SITEURL = 'http://www.yourtech.us'
SITEABOUT = "soawesomejohn :: yourtechjohn :: ytjohn :: johnh :: squegie"
SITEABOUT = "My name is John Hogenmiller, I am a father, husband, Linux system engineer, amateur radio operator (KB3DFZ), bicyclist, and dog owner. If you are on this page, you may want to read my <a href=\"/pages/the-story.html\">story</a>, or you could simply be looking for a way to <a href=\"/pages/contact.html\">contact me</a>. On this site, you will find a collection of technical musings, howto guides, and reference information."
MENU_LINKS = (
('Billing', 'https://hub.yourtech.us/billing/'),
('DNS Admin', 'https://hub.yourtech.us/dnsadmin/'),
)
TIMEZONE = 'Europe/Paris'
DEFAULT_LANG = u'en'
DEFAULT_CATEGORY = ('posts')
# Go to google.com/cse to build a custom search
# blog.yourtech.us: 008176316909509740226:lgxj0_nm9mu
# pelican.ytnoc.net: 008176316909509740226:yycjdi2wzp0
# www.yourtech.us: 008176316909509740226:1osf0ptylds
GOOGLE_CX = '008176316909509740226:1osf0ptylds'
# commenting system
DISQUS_SITENAME = "yourtechjohn"
# Theme it
THEME = "theme/ytjohn-bootstrap2"
# THEME = "notmyidea"
ARTICLE_URL = '/{date:%Y}/{date:%m}/{slug}.html'
ARTICLE_SAVE_AS = '{date:%Y}/{date:%m}/{slug}.html'
PAGE_URL = '/p/{slug}.html'
PAGE_SAVE_AS = 'p/{slug}.html'
# how many words longer pages/summaries
SUMMARY_MAX_LENGTH = 75
# make sure the sources are available
OUTPUT_SOURCES = True
OUTPUT_SOURCES_EXTENSION = '.text'
#PDF_GENERATOR = True
# add any extra files (robots.txt, favicon.ico)
# the htaccess bit doesn't seem to work on the ssh upload
STATIC_PATHS = [
'extra/favicon.ico',
'extra/htaccess',
'extra/ytjohn-key.pub',
]
EXTRA_PATH_METADATA = {
'extra/favicon.ico': {'path': 'favicon.ico'},
'extra/htaccess': {'path': '.htaccess'},
'extra/ytjohn-key.pub': {'path': 'ytjohn-key.pub'}
}
# Blogroll
LINKS = (
('YourTech::Billing', 'https://hub.yourtech.us/billing'),
('YourTech::DNS', 'https://hub.yourtech.us/dnsadmin'),
('----------------', '#'),
('id Graphics', 'http://www.idgraphics.net'),
('Bedford County Amateur Radio Society', 'http://bcars.org'),
('Everett, PA', 'http://www.everettpa.net'),
('Raystown Wireless', 'http://www.raystownwireless.net'),
)
# Social widget
SOCIAL = (('GitHub/ytjohn', '//www.yourtech.us/gh'),
('My Google+', '//www.yourtech.us/plus'),
)
DEFAULT_PAGINATION = 4
PLUGIN_PATH = 'pelican-plugins'
PLUGINS=['sitemap', 'gravatar']
# from pelican.plugins import gravatar
# PLUGINS=['pelican.plugins.sitemap', gravatar]
SITEMAP = {
'format': 'xml',
'priorities': {
'articles': 0.5,
'indexes': 0.5,
'pages': 0.5
},
'changefreqs': {
'articles': 'monthly',
'indexes': 'daily',
'pages': 'monthly'
}
}