pelicanconf.py 1.63 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 29 30

# Feeds settings
FEED_ATOM = 'feeds/atom.xml'
FEED_RSS = 'feeds/feed.rss'
31 32 33 34 35 36
AUTHOR_FEED_ATOM = None
AUTHOR_FEED_RSS = None
CATEGORY_FEED_ATOM = None
CATEGORY_FEED_RSS = None
TAG_FEED_ATOM = None
TAG_FEED_RSS = None
37
TRANSLATION_FEED = None
38 39
TRANSLATION_FEED_ATOM = 'feeds/atom-%s.xml'
TRANSLATION_FEED_RSS = 'feeds/feed-%s.rss'
40

41 42 43 44
# Do not create category pages
CATEGORIES_SAVE_AS = None
CATEGORY_SAVE_AS = ''
CATEFORY_URL = None
45

46
MENUITEMS =  (('Home', '/'),)
47

48 49
SOCIAL = (('identi.ca/debian', 'https://identi.ca/debian'),
          ('Debian Project News', 'https://www.debian.org/News/'),
50 51
          ('Debian micronews ','https://micronews.debian.org/'),
          ('Get Debian', 'http://get.debian.net'))
52

Ana Guerrero López's avatar
Ana Guerrero López committed
53 54

PATH = 'content'
55 56
STATIC_PATHS = [
    'extras/favicon.ico',
57
	'images',
58 59 60 61
    ]
EXTRA_PATH_METADATA = {
    'extras/favicon.ico': {'path': 'favicon.ico'},
    }
62 63 64

# Plugins

65
PLUGINS = ["add_translator_line", "add_artist_line"]
66
PLUGIN_PATHS = ["plugins"]