-
Notifications
You must be signed in to change notification settings - Fork 91
/
pelicanconf.py
executable file
·60 lines (45 loc) · 1.64 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
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
import os
AUTHOR = u'PyCon India Content Team'
SITENAME = u'PyCon India Blog'
DESCRIPTION = "PyCon India's official channel for all announcements and updates related to the conference."
SITEURL = os.getenv('SITEURL', '')
RELATIVE_URLS = True
DEFAULT_LANG = "en"
# Feed generation is usually not desired when developing
FEED_DOMAIN = SITEURL or None
FEED_ALL_RSS = None
FEED_ALL_ATOM = os.getenv('FEED_ALL_ATOM', None) or None
CATEGORY_FEED_ATOM = os.getenv('CATEGORY_FEED_ATOM', None) or None
TRANSLATION_FEED_ATOM = None
AUTHOR_FEED_ATOM = None
AUTHOR_FEED_RSS = None
ARTICLE_PATHS = ["blog"]
THEME = "themes/inpycon2024"
# Blogroll
LINKS = (("InPyCon", "https://in.pycon.org/"), ("PSSI", "http://pssi.org.in/"))
ARTICLE_SAVE_AS = "{date:%Y}/{slug}.html"
ARTICLE_URL = "{date:%Y}/{slug}.html"
CATEGORY_SAVE_AS = ''
YEAR_ARCHIVE_SAVE_AS = "{date:%Y}/index.html"
PLUGIN_PATHS = ["./plugins/"]
PLUGINS = ["summary"]
# This settings indicates that you want to create summary at a certain length
SUMMARY_MAX_LENGTH = None
# Social widget
# SOCIAL = (('You can add links in your config file', '#'),
# ('Another social link', '#'),)
# Uncomment following line if you want document-relative URLs when developing
# RELATIVE_URLS = True
STATIC_PATHS = ["images", "_redirects"]
USE_SHORTCUT_ICONS = True
EXTRA_PATH_METADATA = {"images/favicon.png": {"path": "favicon.png"}}
DEFAULT_PAGINATION = 10
PAGINATION_PATTERNS = (
(1, '{url}', '{save_as}'),
(2, '{base_name}/page/{number}/', '{base_name}/page/{number}/index.html'),
)
# For Atom and RSS feeds
TIMEZONE="GMT"