-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpelicanconf.py
More file actions
57 lines (45 loc) · 1.36 KB
/
Copy pathpelicanconf.py
File metadata and controls
57 lines (45 loc) · 1.36 KB
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
AUTHOR = 'Ben Cliff'
SITENAME = 'Today I Learned'
SITEURL = 'https://ben-cliff.github.io' # Remove any trailing dots
PATH = 'content'
TIMEZONE = 'Europe/London' # Adjust to your timezone
# 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
# Markdown settings
DEFAULT_PAGINATION = 10
THEME = "themes/elegant"
# URL settings
ARTICLE_URL = 'posts/{slug}/'
ARTICLE_SAVE_AS = 'posts/{slug}/index.html'
PAGE_URL = 'pages/{slug}/'
PAGE_SAVE_AS = 'pages/{slug}/index.html'
# Site Settings
SITESUBTITLE = 'Daily Learning Journal' # Optional subtitle
SITE_LICENSE = 'CC-BY-4.0' # Optional license info
# Display settings
DISPLAY_CATEGORIES_ON_MENU = True
# Optional social links
SOCIAL = (
('github', 'https://github.com/Ben-Cliff'),
)
# Elegant theme specific settings
LANDING_PAGE_TITLE = 'Today I Learned'
PROJECTS_TITLE = 'TIL Entries'
DISPLAY_TAGS_ON_SIDEBAR = True
# Optional but recommended for Elegant
SITEDESCRIPTION = 'Daily Learning Journal'
USE_SHORTCUT_ICONS = True
SOCIAL_PROFILE_LABEL = 'Stay in Touch'
RECENT_ARTICLES_COUNT = 10
# Add static paths
STATIC_PATHS = ['images', 'extra']
# Ensure proper path handling
USE_FOLDER_AS_CATEGORY = False
PATH_METADATA = '(?P<path_no_ext>[^.]+)'
# Server settings
PORT = 8080
BIND = '127.0.0.1'