Mercurial > public > pelican-blog
changeset 3:c3115da3ff73
More tweaking. Trying pelican-bootstrap3 theme.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Thu, 30 Jan 2014 21:44:15 -0600 |
parents | b7be75ff95b0 |
children | 7ce6393e6d30 |
files | __bgn/import_blogophile.py extra/favicon.ico images/011-tree1.png pages/about.rst pelicanconf.py |
diffstat | 5 files changed, 92 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/__bgn/import_blogophile.py Wed Jan 29 21:32:04 2014 -0600 +++ b/__bgn/import_blogophile.py Thu Jan 30 21:44:15 2014 -0600 @@ -31,7 +31,7 @@ SRC_DIR = os.path.expanduser('~/coding/python/virtualenvs/blogofile/blog/_posts') -DST_DIR = os.path.expanduser('~/coding/python/venvs/blog/blog-pelican/content') +DST_DIR = os.path.expanduser('~/coding/python/venvs/blog/blog-pelican/content/Coding') TITLE_RE = re.compile(r'^title: (?P<title>.*)$') DATE_RE = re.compile(r'^date: (?P<year>\d{4})/' @@ -45,7 +45,6 @@ {title_underline} :date: {date} -:category: coding :tags: {tags} :slug: {slug} :author: Brian Neal
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pages/about.rst Thu Jan 30 21:44:15 2014 -0600 @@ -0,0 +1,54 @@ +About +===== + +Hello! My name is Brian Neal. By day I am a real-time, embedded C++ programmer. By night and +on the weekends I like to hack on interesting projects in Python_. Right now I am mainly +focused on web development. + +My interests in web development began several years ago when I started a community-based +website for instrumental surf music fans. I simply downloaded a popular PHP CMS system, set +it up, and opened shop. Very quickly bugs appeared. "No problem", I thought, "I'm a programmer, +I can fix this." Opening up that code in a text editor was quite shocking and disappointing. +It was obvious I had chosen a framework built by amatuers with no concern for security, efficiency, +standards, or any kind of software engineering discipline. I spent about 2 years working on the +code with a group of dedicated enthusiasts, but eventually grew tired of the sprawling, cut & paste +spaghetti code. It was simply too broken and too tedious to make fundamental changes. + +I started looking around for other alternatives and discoved Django_. I had some limited experience +with Python from work, and Django looked incredibly useful. Django allowed me to concentrate more +on my application and less on the "grunt work." Once I had created a small website for a friend's +band, I knew I was hooked. I then sent out on a nearly 2 year mission to rewrite my growing website +with Django and Python. The rewrite finally went live about 2 weeks before I attended my first +PyCon_ in 2011. + +This blog will be mainly about my experiences in web development and Python. C++ and my day job may +sneak into the blog from time to time as well. If you have any questions, please don't hesitate to +contact me via any of the links in the sidebar or by email (*bgneal at gmail dot com*). + +Disclaimer +---------- + +I hope this is obvious, but please bear with me. This blog reflects my own personal opinions and +not those of any past, present, or future employers. I hope the information found herein is useful +to others, but I may in fact be on crack and I make no warranties of any nature. This blog is a +snapshot of my thoughts in time. I may change my mind as I learn more and gain further +experience. + +Some blog posts may allow comments. Please note that I reserve the right to remove comments for any +reason at any time. + +Colophon +-------- + +This blog was created with Pelican_, Python_, reStructuredText_, Mercurial_, +Vim_, Fabric_, and Bootstrap_. + +.. _Python: http://python.org +.. _Django: http://djangoproject.com +.. _PyCon: http://us.pycon.org +.. _Pelican: http://getpelican.com/ +.. _Bootstrap: http://twitter.github.com/bootstrap/ +.. _reStructuredText: http://docutils.sourceforge.net/rst.html +.. _Mercurial: http://mercurial.selenic.com/ +.. _Fabric: http://fabfile.org +.. _Vim: http://www.vim.org
--- 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'