annotate 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
rev   line source
bgneal@0 1 #!/usr/bin/env python
bgneal@0 2 # -*- coding: utf-8 -*- #
bgneal@0 3 from __future__ import unicode_literals
bgneal@0 4
bgneal@0 5 AUTHOR = u'Brian Neal'
bgneal@0 6 SITENAME = u'Death of a Gremmie'
bgneal@0 7 SITEURL = ''
bgneal@0 8
bgneal@13 9 PATH = 'content'
bgneal@13 10
bgneal@1 11 TIMEZONE = 'US/Central'
bgneal@0 12
bgneal@0 13 DEFAULT_LANG = u'en'
bgneal@0 14
bgneal@0 15 # Feed generation is usually not desired when developing
bgneal@0 16 FEED_ALL_ATOM = None
bgneal@0 17 CATEGORY_FEED_ATOM = None
bgneal@0 18 TRANSLATION_FEED_ATOM = None
bgneal@0 19
bgneal@0 20 # Blogroll
bgneal@3 21 LINKS = [
bgneal@6 22 ('My Delicious', 'http://delicious.com/bgneal'),
bgneal@6 23 ('My Careers 2.0 Profile', 'http://careers.stackoverflow.com/bgneal'),
bgneal@3 24 ('SurfGuitar101.com', 'http://surfguitar101.com/'),
bgneal@3 25 ]
bgneal@0 26
bgneal@0 27 # Social widget
bgneal@3 28 SOCIAL = [
bgneal@3 29 ('twitter', 'http://twitter.com/bgneal'),
bgneal@3 30 ('bitbucket', 'https://bitbucket.org/bgneal'),
bgneal@3 31 ('github', 'https://github.com/gremmie'),
bgneal@3 32 ('linkedin', 'http://www.linkedin.com/in/bgneal'),
bgneal@3 33 ]
bgneal@0 34
bgneal@0 35 DEFAULT_PAGINATION = 10
bgneal@0 36
bgneal@0 37 # Uncomment following line if you want document-relative URLs when developing
bgneal@0 38 #RELATIVE_URLS = True
bgneal@1 39
bgneal@3 40 DEFAULT_CATEGORY = 'Coding'
bgneal@1 41
bgneal@3 42 CATEGORY_URL = 'category/{slug}/'
bgneal@3 43 CATEGORY_SAVE_AS = CATEGORY_URL + 'index.html'
bgneal@3 44 TAG_URL = 'tag/{slug}/'
bgneal@3 45 TAG_SAVE_AS = TAG_URL + 'index.html'
bgneal@1 46 ARTICLE_URL = '{date:%Y}/{date:%m}/{date:%d}/{slug}/'
bgneal@1 47 ARTICLE_SAVE_AS = ARTICLE_URL + 'index.html'
bgneal@1 48 PAGE_URL = '{slug}/'
bgneal@1 49 PAGE_SAVE_AS = PAGE_URL + 'index.html'
bgneal@3 50 ARCHIVES_URL = 'archives/'
bgneal@3 51 ARCHIVES_SAVE_AS = ARCHIVES_URL + 'index.html'
bgneal@3 52
bgneal@3 53 PAGINATION_PATTERNS = [
bgneal@3 54 (1, '{base_name}/', '{base_name}/index.html'),
bgneal@3 55 (2, '{base_name}/page/{number}/', '{base_name}/page/{number}/index.html'),
bgneal@3 56 ]
bgneal@1 57
bgneal@1 58 AUTHOR_SAVE_AS = False
bgneal@1 59 AUTHORS_SAVE_AS = False
bgneal@1 60
bgneal@3 61 STATIC_PATHS = [
bgneal@3 62 'images',
bgneal@3 63 'extra/favicon.ico',
bgneal@3 64 ]
bgneal@3 65
bgneal@3 66 ###############################################################################
bgneal@3 67
bgneal@8 68 DISQUS_SITENAME = 'deathofagremmie'
bgneal@8 69 DISQUS_DISPLAY_COUNTS = True
bgneal@12 70 DISQUS_NO_ID = True
bgneal@8 71
bgneal@8 72 ###############################################################################
bgneal@8 73
bgneal@5 74 THEME = '/home/brian/coding/python/venvs/blog/pelican-bootstrap3'
bgneal@13 75 BOOTSTRAP_THEME = 'readable-bgn'
bgneal@3 76 BOOTSTRAP_NAVBAR_INVERSE = True
bgneal@3 77 FAVICON = 'extra/favicon.ico'
bgneal@3 78 DISPLAY_RECENT_POSTS_ON_SIDEBAR = True
bgneal@3 79 RECENT_POST_COUNT = 10
bgneal@3 80 CC_LICENSE = 'CC-BY'
bgneal@13 81
bgneal@13 82 DISPLAY_ARTICLE_INFO_ON_INDEX = True
bgneal@13 83 TWITTER_USERNAME = 'bgneal'
bgneal@13 84 TWITTER_WIDGET_ID = '373250113528807425'