Mercurial > public > pelican-blog
diff pelicanconf.py @ 3:c3115da3ff73
More tweaking. Trying pelican-bootstrap3 theme.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Thu, 30 Jan 2014 21:44:15 -0600 |
parents | 64edb34396b6 |
children | 4b5cdcc351c5 |
line wrap: on
line diff
--- a/pelicanconf.py Wed Jan 29 21:32:04 2014 -0600 +++ b/pelicanconf.py Thu Jan 30 21:44:15 2014 -0600 @@ -16,27 +16,57 @@ TRANSLATION_FEED_ATOM = None # Blogroll -LINKS = (('Pelican', 'http://getpelican.com/'), - ('Python.org', 'http://python.org/'), - ('Jinja2', 'http://jinja.pocoo.org/'), - ('You can modify those links in your config file', '#'),) +LINKS = [ + ('Delicious', 'http://delicious.com/bgneal'), + ('Careers 2.0', 'http://careers.stackoverflow.com/bgneal'), + ('SurfGuitar101.com', 'http://surfguitar101.com/'), +] # Social widget -SOCIAL = (('You can add links in your config file', '#'), - ('Another social link', '#'),) +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' +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', +] + +############################################################################### + +THEME = '/home/brian/coding/python/venvs/blog/pelican-themes/pelican-bootstrap3' +BOOTSTRAP_THEME = 'readable' +BOOTSTRAP_NAVBAR_INVERSE = True +FAVICON = 'extra/favicon.ico' +DISPLAY_RECENT_POSTS_ON_SIDEBAR = True +RECENT_POST_COUNT = 10 +CC_LICENSE = 'CC-BY'