-
Notifications
You must be signed in to change notification settings - Fork 0
/
pelicanconf.py
88 lines (73 loc) · 2.05 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
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
# SITE INFO
AUTHOR = 'Luis Orduz'
AUTHOR_EMAIL = '[email protected]'
SITENAME = 'Luis Orduz'
SITESUBTITLE = 'Software Engineer, occasional writer, and movie watcher.'
SITEDESCRIPTION = 'Software Engineering, Python, and life.'
SITEURL = ''
USER_LOGO_URL = 'assets/img/site/image.png'
USER_LOGO_ICON = 'assets/img/site/favicon.png'
HOSTNAME = ''
# BASIC SETTINGS
TIMEZONE = 'America/Bogota'
DEFAULT_LANG = 'en'
# PAGING SETTINGS
DEFAULT_PAGINATION = 10
PAGINATION_PATTERNS = (
(1, '{url}', '{save_as}'),
(2, '{base_name}/p/{number}', '{base_name}/p/{number}.html'),
)
DEFAULT_DATE = None
SUMMARY_MAX_LENGTH = 100
# POST SETTINGS
DEFAULT_METADATA = {
'status':'draft'
}
FILENAME_METADATA = '(?P<slug>.*)'
SUMMARY_MAX_LENGTH = 20
#FOLDER SETTINGS
PATH = 'content'
STATIC_PATHS = ['assets']
EXTRA_PATH_METADATA = {
'assets/CNAME': {'path': 'CNAME'},
'assets/redirect/resume.html': {'path': 'pages/resume.html'},
'assets/redirect/email.html': {'path': 'pages/email.html', 'url': 'pages/email'},
}
# SAVING SETTINGS
ARTICLE_URL = '{date:%Y}/{date:%m}/{date:%d}/{slug}'
ARTICLE_SAVE_AS= '{date:%Y}/{date:%m}/{date:%d}/{slug}.html'
ARTICLE_EXCLUDES = ['assets']
PAGE_URL = 'pages/{slug}'
CATEGORY_URL='category/{slug}'
TAG_URL='tag/{slug}'
AUTHOR_SAVE_AS=''
AUTHORS_SAVE_AS=''
AUTHOR_URL=''
CONTACT_URL='pages/contact'
ABOUT_URL='pages/about'
MISSION_URL='pages/work'
# Feed generation is usually not desired when developing
FEED_ALL_ATOM = ""
CATEGORY_FEED_ATOM = ""
TRANSLATION_FEED_ATOM = None
AUTHOR_FEED_ATOM = None
AUTHOR_FEED_RSS = None
# THEME SETTINGS
DISPLAY_CATEGORIES_ON_MENU = False
DISPLAY_CATEGORIES_ON_POSTINFO = True
DISPLAY_CATEGORIES_ON_SUBMENU = False
TAG_CLOUD_MAX_ITEMS = 20
PAGE_ORDER_BY = 'order'
THEME = 'theme'
SKIPPED_CATEGORIES = ("Notes",)
CATEGORY_DESCRIPTIONS = {
"Notes": "Random thoughts in short format."
}
HASHED_CATEGORIES = ("Notes",)
MENUITEMS = (
("Notes", "category/notes"),
)
PLUGIN_PATHS = ['plugins']
PLUGINS = ['article_hasher', 'category_separator', 'feed_extra_root', 'neighbors']