# -*- coding: utf-8 -*-
import os
import logging

DEBUG = True

# site settings
CDN_STATIC = False
BOOTSTRAP_CDN = False
PAGES_ADDITIONAL_JS = False
SIDEBAR_VARIATION = 'nav'
WEBSITE_URL = 'http://ninjaside.info'

# flatpages and freezer settings
FLATPAGES_AUTO_RELOAD = DEBUG
FLATPAGES_ROOT = 'content'
FLATPAGES_EXTENSION = '.md'

FREEZER_DESTINATION = 'website'
FREEZER_DESTINATION_IGNORE = ['.git*', '.gitignore']

SKIP_DIR = 'trash/'

SITE_STRUCTURE = {
    'flat_pages': {
        'page': {
            'url': 'pages/', 'sort_by': 'position', 'prefix': 'pages',
            'template': 'nav_page.html'
        },
        'wiki': {
            'url': 'wiki/', 'sort_by': 'title', 'prefix': 'wiki',
            'template': 'wiki_page.html'
        },
    },
    'blogs': {
        'blog': {
            'ru': 'blog/ru',
            'en': 'blog/en',
        },
        'music': {
            'ru': 'music/ru',
            'en': 'music/en',
        }
    }
}

# some other
AUTHOR = 'Alex I.'


TAG_RANK = (
    "tagRank10", "tagRank9", "tagRank8", "tagRank7", "tagRank6", "tagRank5",
    "tagRank4", "tagRank3", "tagRank2", "tagRank1"
)


ROJECT_PATH = os.path.dirname(os.path.abspath(__file__))

LOG_LEVEL = logging.DEBUG
logging.basicConfig(level=LOG_LEVEL)
