You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
69 lines
1.5 KiB
69 lines
1.5 KiB
10 years ago
|
#!/usr/bin/env python
|
||
|
# -*- coding: utf-8 -*- #
|
||
|
from __future__ import unicode_literals
|
||
|
|
||
|
AUTHOR = u'sipp11'
|
||
|
SITENAME = u'everyday'
|
||
|
SITEURL = 'http://everyday.in.th'
|
||
|
|
||
|
PATH = 'content'
|
||
|
|
||
|
TIMEZONE = 'Asia/Bangkok'
|
||
|
|
||
|
DEFAULT_LANG = u'th'
|
||
|
PDF_GENERATOR = True
|
||
|
DISQUS_SITENAME = 'everyday-in-th'
|
||
|
GOOGLE_ANALYTICS = 'UA-34877059-5'
|
||
|
# 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
|
||
|
|
||
|
ARTICLE_PATHS = ['blog', 'tech']
|
||
|
ARTICLE_SAVE_AS = '{date:%Y}/{date:%m}/{slug}/index.html'
|
||
|
ARTICLE_URL = '{date:%Y}/{date:%m}/{slug}/'
|
||
|
|
||
|
PAGE_URL = 'pages/{slug}/'
|
||
|
PAGE_SAVE_AS = 'pages/{slug}/index.html'
|
||
|
|
||
|
CATEGORY_URL = 'category/{slug}/'
|
||
|
CATEGORY_SAVE_AS = 'category/{slug}/index.html'
|
||
|
|
||
|
TAG_URL = 'tag/{slug}/'
|
||
|
TAG_SAVE_AS = 'tag/{slug}/index.html'
|
||
|
|
||
|
DISPLAY_PAGES_ON_MENU = True
|
||
|
|
||
|
TYPOGRIFY = True
|
||
|
|
||
|
# Blogroll
|
||
|
LINKS = (
|
||
|
# ('Pelican', 'http://getpelican.com/'),
|
||
|
# ('Python.org', 'http://python.org/'),
|
||
|
# ('Jinja2', 'http://jinja.pocoo.org/'),
|
||
|
)
|
||
|
|
||
|
# Social widget
|
||
|
SOCIAL = (
|
||
|
)
|
||
|
|
||
|
AUTHORS = {
|
||
|
u'sipp11': '/about.html',
|
||
|
}
|
||
|
DEFAULT_PAGINATION = 10
|
||
|
|
||
|
# Uncomment following line if you want document-relative URLs when developing
|
||
|
RELATIVE_URLS = True
|
||
|
THEME = 'themes/notmyideaever'
|
||
|
# THEME = 'themes/chameleon'
|
||
|
|
||
|
import sys
|
||
|
sys.path.append('.')
|
||
|
from filters import sidebar, do_stringtags_and_img
|
||
|
JINJA_FILTERS = {
|
||
|
'sidebar': sidebar,
|
||
|
'stringtags_and_img': do_stringtags_and_img,
|
||
|
}
|