Files @ b2e36c6dd35c
Branch filter:

Location: AENC/cwi-pelican-template-fork/projects/cwi/pelicanconf.py - annotation

guravage
Added explicit index.html. Display news as a blog. Private directory designated static.
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals

AUTHOR = u'M.A. Guravage'
SITENAME = u'CWI Pelican Template'
SITEURL = ''

PATH = 'content'

TIMEZONE = 'Europe/Amsterdam'

DEFAULT_LANG = u'en'

# 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

# Blogroll
LINKS = (('CWI', 'http://www.cwi.nl'),
         ('STW', 'http://www.stw.nl'),
         ('NWO', 'http://www.nwo.nl'),)

# Social widget
SOCIAL = (('twitter', 'https://twitter.com/CWInl'),
          ('github', 'http://github.com'),)

STATIC_PATHS = ['static', 'images', 'private', 'extras/.htaccess', 'extras/.htpassword', 'extras/favicon.ico']
PAGE_PATHS = ['pages']
ARTICLE_PATHS = ['News']
ARTICLE_URL = 'articles/{slug}.html'
ARTICLE_SAVE_AS = 'articles/{slug}.html'

DEFAULT_PAGINATION = 10
USE_FOLDER_AS_CATEGORY = True
DISPLAY_CATEGORIES_ON_MENU = True
DISPLAY_PAGES_ON_MENU = True
LOAD_CONTENT_CACHE = False

EXTRA_PATH_METADATA = {
    'extras/.htaccess': {'path': 'private/.htaccess'},
    'extras/.htpassword': {'path': 'private/.htpassword'},
    'extras/favicon.ico': {'path': 'favicon.ico'}
    }

THEME = 'cwi'

# Uncomment following line if you want document-relative URLs when developing
#RELATIVE_URLS = True

# finis