|
|
|
#!/usr/bin/env python
|
|
|
|
# -*- coding: utf-8 -*- #
|
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
|
|
|
AUTHOR = u'sipp11'
|
|
|
|
SITENAME = u'everyday'
|
|
|
|
SITEURL = 'http://localhost:8000'
|
|
|
|
|
|
|
|
PATH = 'content'
|
|
|
|
|
|
|
|
TIMEZONE = 'Asia/Bangkok'
|
|
|
|
|
|
|
|
DEFAULT_LANG = u'th'
|
|
|
|
PDF_GENERATOR = True
|
|
|
|
DISQUS_SITENAME = ''
|
|
|
|
GOOGLE_ANALYTICS = ''
|
|
|
|
# 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
|
|
|
|
|
|
|
|
STATIC_PATHS = ['media', ]
|
|
|
|
|
|
|
|
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'
|
|
|
|
|
|
|
|
YEAR_ARCHIVE_URL = 'posts/{date:%Y}/'
|
|
|
|
YEAR_ARCHIVE_SAVE_AS = 'posts/{date:%Y}/index.html'
|
|
|
|
MONTH_ARCHIVE_URL = 'posts/{date:%Y}/{date:%m}/'
|
|
|
|
MONTH_ARCHIVE_SAVE_AS = 'posts/{date:%Y}/{date:%m}/index.html'
|
|
|
|
|
|
|
|
DISPLAY_PAGES_ON_MENU = True
|
|
|
|
DISPLAY_CATEGORIES_ON_MENU = False
|
|
|
|
|
|
|
|
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 = False
|
|
|
|
THEME = 'themes/notmyideaever'
|
|
|
|
# THEME = 'themes/chameleon'
|
|
|
|
|
|
|
|
GZIP_CACHE = True
|
|
|
|
|
|
|
|
import sys
|
|
|
|
sys.path.append('.')
|
|
|
|
from filters import sidebar, do_stringtags_and_img
|
|
|
|
JINJA_FILTERS = {
|
|
|
|
'sidebar': sidebar,
|
|
|
|
'stringtags_and_img': do_stringtags_and_img,
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
PLUGIN_PATHS = [
|
|
|
|
'/home/sipp11/dev/pelican-plugins',
|
|
|
|
'/Volumes/2tblack/sipp11/dev/pelican-plugins',
|
|
|
|
]
|
|
|
|
PLUGINS = ['assets', 'sitemap', 'gravatar', 'optimize_images']
|
|
|
|
|
|
|
|
SITEMAP = {
|
|
|
|
'format': 'xml',
|
|
|
|
'priorities': {
|
|
|
|
'articles': 0.5,
|
|
|
|
'indexes': 0.5,
|
|
|
|
'pages': 0.5
|
|
|
|
},
|
|
|
|
'changefreqs': {
|
|
|
|
'articles': 'monthly',
|
|
|
|
'indexes': 'daily',
|
|
|
|
'pages': 'monthly'
|
|
|
|
}
|
|
|
|
}
|