-
Notifications
You must be signed in to change notification settings - Fork 7
/
pelicanconf.py
109 lines (82 loc) · 2.97 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
109
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
import sys
sys.path.append('.')
import customfilters # noqa
JINJA_FILTERS = {'menu_filter': customfilters.menu_filter,
'close_html_tags': customfilters.close_html_tags}
AUTHOR = u'OSU OSL'
SITENAME = u'OSU Open Source Lab'
SITEURL = ''
PATH = 'content'
STATIC_PATHS = ['downloads', 'images']
TIMEZONE = 'America/Los_Angeles'
DEFAULT_DATE_FORMAT = '%a, %b %d %Y'
DEFAULT_LANG = u'en'
# Address and contact info
NAME_ABBREV = u'OSL'
BUILDING = u'224 Milne Computer Center'
STREET_ADDRESS = u'1800 SW Campus Way'
CITY_ZIP = u'Corvallis, OR 97331'
EMAIL = [{'description': u'General inquiries',
'address': u'[email protected]'}]
PHONE_NUM = u'541-737-9900'
IS_CASS = False
IS_OSL = True
# Feed generation is usually not desired when developing
FEED_ALL_ATOM = None
DEFAULT_PAGINATION = 5
# use these specific templates from the theme to render these content types
DIRECT_TEMPLATES = ['index', 'search/index', 'tags', 'tag']
# use pagination for these content types
PAGINATED_TEMPLATES = {'blog': None, 'tags': None}
DIRECT_TEMPLATE_INFO = [
{'parent': u'top', 'link': '/blog', 'name': 'Blog', 'weight': 5, 'children': []}] # noqa
DONATE_LINK = 'https://osuosl.org/donate'
THEME = 'dougfir-pelican-theme'
FEATURED = u'featured-stories'
SLIDESHOW_LIMIT = 5
OSL_HOME_EXTRAS = True
FRONTPAGE = u'frontpage'
# Gudea Font
FONT = 'https://fonts.googleapis.com/css?family=Gudea'
# categories live at /blog
CATEGORY_URL = 'blog/{slug}'
CATEGORY_SAVE_AS = 'blog/index.html'
# gather the articles from the blog/posts directory
ARTICLE_PATHS = ['blog/posts/']
# find the articles at SITE_URL/blog/{ slug }
ARTICLE_URL = 'blog/{slug}/'
ARTICLE_SAVE_AS = 'blog/{slug}/index.html'
ARTICLE_ORDER_BY = 'reversed-date'
# the index of all tags
TAGS_URL = 'tag/'
TAGS_SAVE_AS = 'tag/index.html'
# tagged articles are organized under SITE_URL/tag/
TAG_PREFIX = 'tag'
TAG_URL = TAG_PREFIX + '/{slug}/'
TAG_SAVE_AS = 'tag/{slug}/index.html'
# exclude articles with this tag from the blog
EXCLUDE_TAG = 'no-blog'
PAGE_PATHS = ['about', 'services', 'donate', 'blog', 'forms']
PAGE_SAVE_AS = '{slug}/index.html'
PAGE_URL = '{slug}'
DEFAULT_DATE = 'fs'
USE_FOLDER_AS_CATEGORY = True
# Social media
TWITTERURL = 'https://twitter.com/osuosl'
FACEBOOKURL = 'https://facebook.com/osuosl'
GITHUBURL = 'https://github.com/osuosl'
YOUTUBEURL = 'https://youtube.com/osuopensourcelab'
GPLUSURL = 'https://plus.google.com/107361178205293595706?rel=author'
GOOGLE_ANALYTICS = 'UA-537692-1'
DEP_NAME = 'OSU Open Source Lab'
PARENT_ORG = 'Center for Applied Systems & Software'
PARENT_ORG_URL = 'https://cass.oregonstate.edu/'
OSLLOGO = 'osllogo-web_0.png'
SITELOGO = 'milne_street.png'
SITELOG_URL = 'https://www.google.com/maps/place/Milne+Computer+Center,+1800+SW+Campus+Way,+Corvallis,+OR+97331' # noqa
# Uncomment following line if you want document-relative URLs when developing
# RELATIVE_URLS = True
DISABLE_SIDEBAR = True