<filename>isudo/conf.py
# -*- coding: utf-8 -*-
from pytz import timezone

import conf


# Classes that generate something
WRITERS = getattr(conf, 'WRITERS', [
    'isudo.writer.IndexWriter',
    'isudo.writer.ErrorWriter',
    'isudo.writer.ExtraFilesWriter',
    'isudo.writer.RobotsTxtWriter',
    'isudo.writer.ResourcesWriter',
    'isudo.writer.PostWriter',
    'isudo.writer.TagsPageWriter',
    'isudo.writer.TagsWriter',
    'isudo.writer.CategoriesWriter',
    'isudo.writer.FeedWriter',
])

# http://isudo.ru
BLOG_URL = getattr(conf, 'BLOG_URL')

BLOG_EMAIL = getattr(conf, 'BLOG_EMAIL')

BLOG_TITLE = getattr(conf, 'BLOG_TITLE', 'BLOG TITLE')

BLOG_DESCRIPTION = getattr(conf, 'BLOG_DESCRIPTION', '')

# String with key words split by comma
BLOG_KEYWORDS = getattr(conf, 'BLOG_KEYWORDS', '')

# Some extra header, for example meta yandex verification
EXTRA_HEADER = getattr(conf, 'EXTRA_HEADER', '')

# Some string that placed before close body tag
# can be use to add some google metric
EXTRA_HTML = getattr(conf, 'EXTRA_HTML', '')

# Tuple of file name and its content
# Can be used to create keys for some system like yandex metric
EXTRA_FILES = getattr(conf, 'EXTRA_FILES', None)

# Add snow to site
SNOW_STORM = getattr(conf, 'SNOW_STORM', False)

# Link sidebar
# list of (link, title, name)
LINKS = getattr(conf, 'LINKS', [])

# Path where html template exists
TEMPLATE_PATH = getattr(conf, 'TEMPLATE_PATH', 'template')

# Return TzInfo object, default 'UTC'
TIME_ZONE = timezone(getattr(conf, 'TIME_ZONE', 'UTC'))

# If you want something like http://isudo.ru/blog/
DOMAIN_SUB_FOLDER = getattr(conf, 'DOMAIN_SUB_FOLDER', '')

# Dict that will pass to template processor
TEMPLATE_KWARGS = getattr(conf, 'TEMPLATE_KWARGS', {
    'BLOG_URL': BLOG_URL,
    'BLOG_EMAIL': BLOG_EMAIL,
    'BLOG_TITLE': BLOG_TITLE,
    'BLOG_DESCRIPTION': BLOG_DESCRIPTION,
    'BLOG_KEYWORDS': BLOG_KEYWORDS,
    'EXTRA_HEADER': EXTRA_HEADER,
    'EXTRA_HTML': EXTRA_HTML,
    'SNOW_STORM': SNOW_STORM,
    'LINKS': LINKS,
})

# Path where to put generated files
DEPLOY_PATH = getattr(conf, 'DEPLOY_PATH', 'deploy')

# Path where to get posts
POST_PATH = getattr(conf, 'POST_PATH', 'posts')

# Default url style, for new posts.
# To override use absolute utl in post meta info.
# Use date variable of datetime type, `{date.year}`.
POST_PATH_STYLE = getattr(conf, 'POST_PATH_STYLE', '/{date.year}/{date.month:02d}')

# Main POSTS
POST_PER_PAGE = getattr(conf, 'POST_PER_PAGE', 8)

# Two colors to make nice transition from most used tags to less used.
# Type (r,g,b),(r,g,b)
TAG_CLOUD_FONT_COLOR = getattr(conf, 'TAG_CLOUD_FONT_COLOR', (
    (168, 168, 196),
    (102, 102, 204)
))

# Content for robots.txt file.
# Default ony feed disallowed.
ROBOTS_TXT = getattr(conf, 'ROBOTS_TXT', """
User-agent: *
Disallow: /feed/
""").strip()

<filename>isudo/conf.py
# -*- coding: utf-8 -*-
from pytz import timezone

import conf


# Classes that generate something
WRITERS = getattr(conf, 'WRITERS', [
    'isudo.writer.IndexWriter',
    'isudo.writer.ErrorWriter',
    'isudo.writer.ExtraFilesWriter',
    'isudo.writer.RobotsTxtWriter',
    'isudo.writer.ResourcesWriter',
    'isudo.writer.PostWriter',
    'isudo.writer.TagsPageWriter',
    'isudo.writer.TagsWriter',
    'isudo.writer.CategoriesWriter',
    'isudo.writer.FeedWriter',
])

# http://isudo.ru
BLOG_URL = getattr(conf, 'BLOG_URL')

BLOG_EMAIL = getattr(conf, 'BLOG_EMAIL')

BLOG_TITLE = getattr(conf, 'BLOG_TITLE', 'BLOG TITLE')

BLOG_DESCRIPTION = getattr(conf, 'BLOG_DESCRIPTION', '')

# String with key words split by comma
BLOG_KEYWORDS = getattr(conf, 'BLOG_KEYWORDS', '')

# Some extra header, for example meta yandex verification
EXTRA_HEADER = getattr(conf, 'EXTRA_HEADER', '')

# Some string that placed before close body tag
# can be use to add some google metric
EXTRA_HTML = getattr(conf, 'EXTRA_HTML', '')

# Tuple of file name and its content
# Can be used to create keys for some system like yandex metric
EXTRA_FILES = getattr(conf, 'EXTRA_FILES', None)

# Add snow to site
SNOW_STORM = getattr(conf, 'SNOW_STORM', False)

# Link sidebar
# list of (link, title, name)
LINKS = getattr(conf, 'LINKS', [])

# Path where html template exists
TEMPLATE_PATH = getattr(conf, 'TEMPLATE_PATH', 'template')

# Return TzInfo object, default 'UTC'
TIME_ZONE = timezone(getattr(conf, 'TIME_ZONE', 'UTC'))

# If you want something like http://isudo.ru/blog/
DOMAIN_SUB_FOLDER = getattr(conf, 'DOMAIN_SUB_FOLDER', '')

# Dict that will pass to template processor
TEMPLATE_KWARGS = getattr(conf, 'TEMPLATE_KWARGS', {
    'BLOG_URL': BLOG_URL,
    'BLOG_EMAIL': BLOG_EMAIL,
    'BLOG_TITLE': BLOG_TITLE,
    'BLOG_DESCRIPTION': BLOG_DESCRIPTION,
    'BLOG_KEYWORDS': BLOG_KEYWORDS,
    'EXTRA_HEADER': EXTRA_HEADER,
    'EXTRA_HTML': EXTRA_HTML,
    'SNOW_STORM': SNOW_STORM,
    'LINKS': LINKS,
})

# Path where to put generated files
DEPLOY_PATH = getattr(conf, 'DEPLOY_PATH', 'deploy')

# Path where to get posts
POST_PATH = getattr(conf, 'POST_PATH', 'posts')

# Default url style, for new posts.
# To override use absolute utl in post meta info.
# Use date variable of datetime type, `{date.year}`.
POST_PATH_STYLE = getattr(conf, 'POST_PATH_STYLE', '/{date.year}/{date.month:02d}')

# Main POSTS
POST_PER_PAGE = getattr(conf, 'POST_PER_PAGE', 8)

# Two colors to make nice transition from most used tags to less used.
# Type (r,g,b),(r,g,b)
TAG_CLOUD_FONT_COLOR = getattr(conf, 'TAG_CLOUD_FONT_COLOR', (
    (168, 168, 196),
    (102, 102, 204)
))

# Content for robots.txt file.
# Default ony feed disallowed.
ROBOTS_TXT = getattr(conf, 'ROBOTS_TXT', """
User-agent: *
Disallow: /feed/
""").strip()

# -*- coding: utf-8 -*- # Classes that generate something # http://isudo.ru # String with key words split by comma # Some extra header, for example meta yandex verification # Some string that placed before close body tag # can be use to add some google metric # Tuple of file name and its content # Can be used to create keys for some system like yandex metric # Add snow to site # Link sidebar # list of (link, title, name) # Path where html template exists # Return TzInfo object, default 'UTC' # If you want something like http://isudo.ru/blog/ # Dict that will pass to template processor # Path where to put generated files # Path where to get posts # Default url style, for new posts. # To override use absolute utl in post meta info. # Use date variable of datetime type, `{date.year}`. # Main POSTS # Two colors to make nice transition from most used tags to less used. # Type (r,g,b),(r,g,b) # Content for robots.txt file. # Default ony feed disallowed. User-agent: * Disallow: /feed/