pelicanconf.py 1.66 KB
Newer Older
1 2 3 4 5 6
#!/usr/bin/env python
# -*- coding: utf-8 -*- #

# Basic details
AUTHOR = u'The Debian Project'
SITENAME = u'Bits from Debian'
Ana Guerrero López's avatar
Ana Guerrero López committed
7
SITESUBTITLE = u'Blog from the Debian Project'
8
SITEURL = 'https://bits.debian.org'
9 10 11 12 13 14

# Configuration
TIMEZONE = 'Europe/Paris'
DEFAULT_LANG = u'en'
DELETE_OUTPUT_DIRECTORY = True
THEME = "theme-bits"
15
DEFAULT_PAGINATION = 5
16
DISPLAY_PAGES_ON_MENU = True
17
SUMMARY_MAX_LENGTH = None
Ana Guerrero López's avatar
Ana Guerrero López committed
18
LOCALE='C'
19 20

# URL settings
21
# We might want this for publication
22
RELATIVE_URLS = True
23 24
ARTICLE_URL = '{date:%Y}/{date:%m}/{slug}.html'
ARTICLE_SAVE_AS = '{date:%Y}/{date:%m}/{slug}.html'
25 26
ARTICLE_LANG_URL = '{date:%Y}/{date:%m}/{slug}-{lang}.html'
ARTICLE_LANG_SAVE_AS = '{date:%Y}/{date:%m}/{slug}-{lang}.html'
27 28
AUTHOR_URL = ''
AUTHOR_SAVE_AS = ''
29

30 31 32 33
# Create month and year archives
YEAR_ARCHIVE_SAVE_AS = '{date:%Y}/index.html'
MONTH_ARCHIVE_SAVE_AS = '{date:%Y}/{date:%m}/index.html'

34 35 36
# Feeds settings
FEED_ATOM = 'feeds/atom.xml'
FEED_RSS = 'feeds/feed.rss'
37 38 39 40 41 42
AUTHOR_FEED_ATOM = None
AUTHOR_FEED_RSS = None
CATEGORY_FEED_ATOM = None
CATEGORY_FEED_RSS = None
TAG_FEED_ATOM = None
TAG_FEED_RSS = None
43
TRANSLATION_FEED = None
44 45
TRANSLATION_FEED_ATOM = 'feeds/atom-%s.xml'
TRANSLATION_FEED_RSS = 'feeds/feed-%s.rss'
46

47 48 49 50
# Do not create category pages
CATEGORIES_SAVE_AS = None
CATEGORY_SAVE_AS = ''
CATEFORY_URL = None
51

52
MENUITEMS =  ()
53

54 55
SOCIAL = (('Project News', 'https://www.debian.org/News/'),
          ('Micronews ','https://micronews.debian.org/'))
56

Ana Guerrero López's avatar
Ana Guerrero López committed
57 58

PATH = 'content'
59 60
STATIC_PATHS = [
    'extras/favicon.ico',
61
	'images',
62 63 64 65
    ]
EXTRA_PATH_METADATA = {
    'extras/favicon.ico': {'path': 'favicon.ico'},
    }
66 67 68

# Plugins

69
PLUGINS = ["add_translator_line", "add_artist_line"]
70
PLUGIN_PATHS = ["plugins"]