Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 9a4ac55bd7
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 79 lines (69 sloc) 1.54 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78
# -*- coding: utf-8 -*-
# Volt configurations file

import os

from volt.config import Config


# General project configurations
SITE = Config(
    TITLE = "bow.web.id",
    URL = "http://bow.web.id",
    ENGINES = (
        'plain',
        'blog',
    ),
    PAGES = (
        'index.html',
    ),
    PLUGINS = (
        'css_minifier',
    ),
    DISQUS_NAME = "bow",
    GOOGLE_ANALYTICS_ID = "UA-4847388-8",
    FILTERS = (
        'header_taglink',
        'header_timelink',
    ),
)

# Plain engine configurations
ENGINE_PLAIN = Config(
    URL = "/",
    PERMALINK = "{slug}",
    PLUGINS = (
        'markdown_parser',
    ),
)

# Blog engine configurations
ENGINE_BLOG = Config(
    URL = "/blog",
    PERMALINK = "{time:%Y/%m}/{slug}",
    PAGINATIONS = {
        '': '',
        'tag/{tags}': "Posts tagged '%s'",
        '{time:%Y/%m}': "Posts in %B %Y",
        '{time:%Y}': "Posts in %Y",
    },
    UNITS_PER_PAGINATION = 5,
    EXCERPT_LENGTH = 400,
    PLUGINS = (
        'markdown_parser',
        'syntax',
        'atomic',
    ),
)

# Plugins configurations
PLUGIN_ATOMIC = Config(
    FEEDS = {
        '': 'atom.xml',
        'tags': 'atom-%s.xml',
    },
    OUTPUT_DIR = os.path.join(os.getcwd(), 'site', 'feed'),
)

PLUGIN_SYNTAX = Config(
    OUTPUT_DIR = os.path.join(os.getcwd(), 'site', 'css'),
    PYGMENTS_LEXER = {
        'stripall': True,
    },
)

PLUGIN_CSS_MINIFIER = Config(
    SOURCE_DIR = os.path.join(os.getcwd(), 'site', 'css'),
    OUTPUT_DIR = os.path.join(os.getcwd(), 'site', 'css'),
)
Something went wrong with that request. Please try again.