-
Notifications
You must be signed in to change notification settings - Fork 0
/
pelicanconf.py
125 lines (102 loc) · 3.23 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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
AUTHOR = u'Mark Gondree, Zachary NJ Peterson'
SITENAME = u'TableTop Security'
SITEURL = 'http://localhost:8000'
SITELOGO = 'images/2497807.png'
SITELOGO_SIZE = '30'
FAVICON = 'images/favicon.ico'
TIMEZONE = 'US/Pacific'
DEFAULT_LANG = u'en'
DEFAULT_PAGINATION = 5
USE_PAGER = False
# Home / index.html
NEWS_ITEMS = 5
# Plugins
PLUGIN_PATHS = ["plugins"]
PLUGINS = ['tag_cloud']
# Tag Cloud options
TAG_CLOUD_MAX_ITEMS = 200
DISPLAY_TAGS_INLINE = True
TAG_CLOUD_STEPS = 3
TAGS_URL = 'tags.html'
# 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
# Twitter Cards and Dependencies - Uses OpenGraph which is
# set to true by default, if you have changed this Twitter Cards
# will not work.
TWITTER_CARDS = True
TWITTER_USERNAME = 'TableTopSec'
TWITTER_WIDGET_ID ='620044429580066816'
PATH = 'content'
STATIC_PATHS = ['images',
'extras/css/tts.css', 'extras/CNAME',
'extras/google14081f6503dca9ab' # req'd for Google+ website verification
]
EXTRA_PATH_METADATA = {
'extras/css/tts.css': {'path': 'static/tts.css'},
'extras/CNAME' : {'path': 'CNAME'},
'extras/google14081f6503dca9ab' : {'path' : 'google14081f6503dca9ab.html'},
}
# Banner options
BANNER = 'images/go-2.jpg'
BANNER_ALL_PAGES = True # well, not really, lets restrict it
BANNER_PAGES = ['index.html']
MOVE_MENU_TO_TOP = True
# Category options
USE_FOLDER_AS_CATEGORY = True
CATEGORY_SAVE_AS = '{slug}.html'
DEFAULT_CATEGORY = 'Blog'
# Article saving options
ARTICLE_URL = 'article/{slug}.html'
ARTICLE_SAVE_AS = 'article/{slug}.html'
INDEX_SAVE_AS = 'all.html'
DISPLAY_ARTICLE_INFO_ON_INDEX = True
SUMMARY_MAX_LENGTH = 100
# Article meta info shown
SHOW_ARTICLE_AUTHOR = True
ARTICLE_AUTHORS_PAGE = 'about.html'
SHOW_DATE_MODIFIED = False
SHOW_SERIES = False
SHOW_ARTICLE_CATEGORY = False
PDF_PROCESSOR = False
# Menu items
DISPLAY_CATEGORIES_ON_MENU = False
DISPLAY_ARCHIVE_ON_MENU = False
DISPLAY_PAGES_ON_MENU = False
DISPLAY_SOCIAL_ON_MENU = True
MENUITEMS = (('Projects', '/projects'),
('Blog', '/blog.html'),
('Media', '/media'),
('About', '/about'),
)
# Sidebar options
DISPLAY_RECENT_POSTS_ON_SIDEBAR = False
DISPLAY_TAGS_ON_SIDEBAR = True
DISPLAY_CATEGORIES_ON_SIDEBAR = False
DISPLAY_SERIES_ON_SIDEBAR = False
DISPLAY_SOCIAL_ON_SIDEBAR = False
DISPLAY_ARCHIVE_ON_SIDEBAR = True
LINKS = ()
# Social widget
SOCIAL = (('twitter', 'https://twitter.com/TableTopSec'),
('youtube', 'https://www.youtube.com/user/TableTopSecurity'),
('flickr', 'https://www.flickr.com/tabletopsecurity'),
('boardgamegeek', 'https://boardgamegeek.com/boardgamepublisher/23997/tabletop-security'),
#('google-plus', 'https://plus.google.com/114066012466458862886'),
('github', 'http://github.com/tabletopsecurity')
)
# Uncomment following line if you want document-relative URLs when developing
#RELATIVE_URLS = True
# Theme related settings
THEME = 'themes/pelican-bootstrap3'
THEME_STATIC_PATHS=['static']
CSS_FILE='tts.css'
CUSTOM_CSS = 'static/tts.css'
# Caching
LOAD_CONTENT_CACHE = False