forked from sgvlug/website
/
pelicanconf.py
74 lines (54 loc) · 2.25 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
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
AUTHOR = u'SGVLUG'
SITENAME = u'SGVLUG'
SITESUBTITLE = u"San Gabriel Valley Linux User's Group"
SITEURL = ''
TIMEZONE = 'US/Pacific'
DEFAULT_LANG = u'en'
# Feed generation is usually not desired when developing
FEED_ALL_ATOM = None
CATEGORY_FEED_ATOM = None
TRANSLATION_FEED_ATOM = None
# Blogroll
LINKS = ( ('Mailing List', 'http://sgvlug.net/mailman/listinfo/sgvlug'),
('Meetup Group', 'http://www.meetup.com/SGVTech/'),
('Twitter', 'https://twitter.com/sgvlug'),
('IRC: #sgvlug on Freenode', 'http://webchat.freenode.net/?channels=sgvlug'),
('Google+', 'https://plus.google.com/111221024339538215725'),
('SGVHAK', 'http://www.sgvhak.org/'),
)
SPONSORS = ( ('OpenX', 'http://openx.com/', '/images/sponsors/ox_logo.png'),
('Red Hat', 'http://www.redhat.com', '/images/sponsors/redhat_logo.png'),
('No Starch Press', 'http://www.nostarch.com/', '/images/sponsors/nsp_logo.png'),
("O'Reilly", 'http://www.oreilly.com/', '/images/sponsors/oreilly_logo.png'),
('Hackaday', 'http://hackaday.com/', '/images/sponsors/hackaday_logo.png'),
)
# Social widget
SOCIAL = None
DEFAULT_PAGINATION = 6
SUMMARY_MAX_LENGTH = None
ARTICLE_URL = '{date:%Y}/{date:%m}/{date:%d}/{slug}/'
ARTICLE_SAVE_AS = '{date:%Y}/{date:%m}/{date:%d}/{slug}/index.html'
STATIC_PATHS = ['images', 'slides', 'favicon.png', 'CNAME', 'google6a5fead5ee534060.html']
# Do not process html files through the reader
READERS = {'html': None}
GOOGLE_ANALYTICS = 'UA-37621013-1'
THEME = 'theme/bootstrap3'
BOOTSTRAP_THEME = 'cosmo'
PAGES_NAME = 'Info'
DISPLAY_PAGES_ON_MENU = False
DISPLAY_CATEGORIES_ON_MENU = False
DISPLAY_RECENT_POSTS_ON_SIDEBAR = True
DISPLAY_TAGS_ON_SIDEBAR = False
DISPLAY_PAGES_ON_SIDEBAR = True
DISPLAY_LINKS_ON_SIDEBAR = True
SHOW_EVENT_INFO = True
DEFAULT_DATE_FORMAT = '%A %B %d, %Y %I:%M %p'
from pelican.utils import get_date, strftime
def format_date(value, date_format=DEFAULT_DATE_FORMAT):
return strftime(get_date(value), date_format)
JINJA_FILTERS = { 'format_date': format_date, }
# Uncomment following line if you want document-relative URLs when developing
#RELATIVE_URLS = True