-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathpelicanconf.py
54 lines (41 loc) · 1.58 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
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
"""Primary configuration file for DesertPy Pelican Site"""
AUTHOR = u'DesertPy Pythonistas'
SITENAME = u'DesertPy'
SITEURL = 'https://desertpy.com'
PATH = 'content'
TIMEZONE = 'America/Phoenix'
DEFAULT_LANG = u'en'
# Additional main menue items
MENUITEMS = [
('<i class="fas fa-info-circle"></i> About', '/pages/about.html'),
('<i class="fas fa-file-powerpoint"></i> Presentations', '/pages/presentations.html'),
('<i class="fab fa-discord"></i> Discord Chat <i class="fas fa-external-link-alt"></i>', 'https://discord.gg/ch7TPCx'),
('<i class="fab fa-meetup"></i> Meetup Group <i class="fas fa-external-link-alt"></i>', 'https://www.meetup.com/Phoenix-Python-Meetup-Group/'),
]
# Blogroll
LINKS = []
# Social widget
SOCIAL = []
ARTICLE_PATHS = ['posts', 'meetup_posts_old_api_gen']
DEFAULT_PAGINATION = 10
# Hide About
DISPLAY_PAGES_ON_MENU = False
DISPLAY_CATEGORIES_ON_MENU = False
USE_FOLDER_AS_CATEGORY = False
PAGE_PATHS = ['pages']
# Add page titles here if you don't want them linked to automatically
EXCLUDED_PAGES = ['Web Chat']
# this should be true for dev purposes otherwise you don't see your specified
# css, uh, I think
RELATIVE_URLS = True
GOOGLE_ANALYTICS = 'UA-39513587-1'
THEME = "themes/desertpyidea"
ARTICLE_URL = 'posts/{date:%Y}/{date:%b}/{date:%d}/{slug}/'
ARTICLE_SAVE_AS = 'posts/{date:%Y}/{date:%b}/{date:%d}/{slug}/index.html'
STATIC_PATHS = ['images', 'extra/robots.txt', 'extra/favicon.ico']
EXTRA_PATH_METADATA = {
'extra/robots.txt': {'path': 'robots.txt'},
'extra/favicon.ico': {'path': 'favicon.ico'}
}