Mercurial > public > pelican-blog
view pelicanconf.py @ 13:bcfe2a2c8358
Take advantages of new pelican-bootstrap3 features.
Show date & tags on index.
Show twitter widget.
The Bootstrap readable theme was updated. I didn't like the new
version as much so I saved it as 'readable-bgn' in my pelican-bootstrap3
repo.
Added a setting PATH = 'content' to prevent weird errors when using
'fab regenerate', etc. Got this by googling.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Mon, 10 Feb 2014 20:03:21 -0600 |
parents | 5ff71680269a |
children | 4ed3f207aa65 |
line wrap: on
line source
#!/usr/bin/env python # -*- coding: utf-8 -*- # from __future__ import unicode_literals AUTHOR = u'Brian Neal' SITENAME = u'Death of a Gremmie' SITEURL = '' PATH = 'content' TIMEZONE = 'US/Central' DEFAULT_LANG = u'en' # Feed generation is usually not desired when developing FEED_ALL_ATOM = None CATEGORY_FEED_ATOM = None TRANSLATION_FEED_ATOM = None # Blogroll LINKS = [ ('My Delicious', 'http://delicious.com/bgneal'), ('My Careers 2.0 Profile', 'http://careers.stackoverflow.com/bgneal'), ('SurfGuitar101.com', 'http://surfguitar101.com/'), ] # Social widget SOCIAL = [ ('twitter', 'http://twitter.com/bgneal'), ('bitbucket', 'https://bitbucket.org/bgneal'), ('github', 'https://github.com/gremmie'), ('linkedin', 'http://www.linkedin.com/in/bgneal'), ] DEFAULT_PAGINATION = 10 # Uncomment following line if you want document-relative URLs when developing #RELATIVE_URLS = True DEFAULT_CATEGORY = 'Coding' CATEGORY_URL = 'category/{slug}/' CATEGORY_SAVE_AS = CATEGORY_URL + 'index.html' TAG_URL = 'tag/{slug}/' TAG_SAVE_AS = TAG_URL + 'index.html' ARTICLE_URL = '{date:%Y}/{date:%m}/{date:%d}/{slug}/' ARTICLE_SAVE_AS = ARTICLE_URL + 'index.html' PAGE_URL = '{slug}/' PAGE_SAVE_AS = PAGE_URL + 'index.html' ARCHIVES_URL = 'archives/' ARCHIVES_SAVE_AS = ARCHIVES_URL + 'index.html' PAGINATION_PATTERNS = [ (1, '{base_name}/', '{base_name}/index.html'), (2, '{base_name}/page/{number}/', '{base_name}/page/{number}/index.html'), ] AUTHOR_SAVE_AS = False AUTHORS_SAVE_AS = False STATIC_PATHS = [ 'images', 'extra/favicon.ico', ] ############################################################################### DISQUS_SITENAME = 'deathofagremmie' DISQUS_DISPLAY_COUNTS = True DISQUS_NO_ID = True ############################################################################### THEME = '/home/brian/coding/python/venvs/blog/pelican-bootstrap3' BOOTSTRAP_THEME = 'readable-bgn' BOOTSTRAP_NAVBAR_INVERSE = True FAVICON = 'extra/favicon.ico' DISPLAY_RECENT_POSTS_ON_SIDEBAR = True RECENT_POST_COUNT = 10 CC_LICENSE = 'CC-BY' DISPLAY_ARTICLE_INFO_ON_INDEX = True TWITTER_USERNAME = 'bgneal' TWITTER_WIDGET_ID = '373250113528807425'