#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
import os

################# DEVELOPMENT SETTINGS ###########################
RELATIVE_URLS = False   # when deploying site
#RELATIVE_URLS = True    # developing site

# when changing settings set this to false
LOAD_CONTENT_CACHE = False
################# SITE SETTINGS ###########################
AUTHOR = 'Neal Gordon'
SITENAME = 'if curious: then learn'
SITEURL = 'http://nagordon.github.io/ifcuriousthenlearn'
#SITEURL = 'http://ifcuriousthenlearn.com'
HIDE_SITENAME = False

################# Pelican SETTINGS ###########################
DISPLAY_PAGES_ON_MENU = True
TAG_CLOUD_STEPS = 7
TAG_CLOUD_MAX_ITEMS = 15
DISPLAY_ARTICLE_INFO_ON_INDEX = True
PATH = 'content'
STATIC_PATHS = ['images', 'code','fig', 'notebooks', 'extra/CNAME']
EXTRA_PATH_METADATA = {'extra/CNAME': {'path': 'CNAME'},}
#PAGE_PATHS = ['notebooks']
#ARTICLE_PATHS = ['notebooks']
NOTEBOOK_DIR = 'notebooks'
#ARTICLE_PATHS = ['content']
USE_FOLDER_AS_CATEGORY = False
THEME = "themes/pelican-bootstrap3" # 'notmyidea'
DIRECT_TEMPLATES = ('index', 'categories', 'authors', 'archives', 'search')

# ipynb settings
IPYNB_USE_META_SUMMARY = True
MARKUP = ('md', 'ipynb')
PLUGIN_PATHS = ['plugins']
PLUGINS = ['liquid_tags.img',
           'liquid_tags.youtube',
           'liquid_tags.include_code',
	       'liquid_tags.notebook']

IGNORE_FILES = [".ipynb_checkpoints"] 

SUMMARY_MAX_LENGTH = 200
USE_FOLDER_AS_CATEGORY = False
#CUSTOM_CSS = 'static/custom.css'

DISQUS_SITENAME = 'nagordon-github'


################# BOOTSTRAP SETTINGS ###########################
BANNER = 'images/banner.jpg'
#SITELOGO = 'images/earth.png'
#SITELOGO_SIZE = 40
FAVICON = 'images/earth.png'

BANNER_SUBTITLE = 'a blog of engineering and technology'
SHOW_ARTICLE_AUTHOR = True
SHOW_DATE_MODIFIED = False
BOOTSTRAP_FLUID = False   # set as false if you want a fixed width
BANNER_ALL_PAGES = False

DEFAULT_PAGINATION = False   #10
DISPLAY_BREADCRUMBS = False
HIDE_SIDEBAR  = False
DISPLAY_PAGES_ON_MENU = True
DISPLAY_CATEGORIES_ON_MENU = True

DISPLAY_TAGS_INLINE = True
DISPLAY_CATEGORIES_ON_SIDEBAR = True
DISPLAY_RECENT_POSTS_ON_SIDEBAR = True
RECENT_POST_COUNT = 5


#BOOTSTRAP_THEME = 'journal' #'simplex'# 'cosmo' # 'readable'

#AVATAR = 'images/me.png'
#ABOUT_ME = 'Here I am!'

#GITHUB_URL = 'https://github.com/nagordon'
GITHUB_USER = 'nagordon'

ARTICLE_URL = 'blog/{date:%Y}/{date:%m}/{date:%d}/{slug}/'
ARTICLE_SAVE_AS = 'blog/{date:%Y}/{date:%m}/{date:%d}/{slug}/index.html'

EMAIL = 'nealagordon@gmail.com'



DATE_FORMATS = {'en': '%Y-%m-%d'}
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 = (('Pelican', 'http://getpelican.com/'),
         ('Python.org', 'http://python.org/'),
		 ('Scipy.org','https://www.scipy.org/'),
         ('Jinja2', 'http://jinja.pocoo.org/'),)

# Social widget
SOCIAL = (('LinkedIn', 'https://www.linkedin.com/profile/public-profile-settings?trk=prof-edit-edit-public_profile'),
          ('GitHub', 'https://github.com/nagordon'),
		  ('Reddit','http://www.reddit.com/user/nagordon'),
		  ('Instructables','http://www.instructables.com/member/nagordon'),
		  ('StackOverflow','http://stackoverflow.com/users/2438993/nagordon'),)
