-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconf.py
64 lines (39 loc) · 1.85 KB
/
conf.py
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
# -*- encoding: utf-8 -*-
# This is your configuration file. Please write valid python!
# See http://posativ.org/acrylamid/conf.py.html
SITENAME = 'Пресс-релизы'
WWW_ROOT = 'http://anker.ru/'
AUTHOR = 'Venom'
EMAIL = '[email protected]'
ENCODING = 'utf-8'
#FILTERS = ['Markdown', 'markdown+codehilite(css_class=highlight)', 'hyphenate', 'h1']
FILTERS = ['Markdown', ]
VIEWS = {
'/pr_rus/': {'view': 'index',
'pagination': '/pr_rus/page/:num/', 'items_per_page': 1},
'/pr_rus/:year/:slug/': {'views': ['entry', 'draft']},
'/pr_rus/tag/:name/': {'filters': 'summarize', 'view':'tag',
'pagination': '/pr_rus/tag/:name/:num/'},
# # per tag Atom or RSS feed. Just uncomment to generate them.
# '/tag/:name/atom/': {'filters': ['h2', 'nohyphenate'], 'view': 'atompertag'},
# '/tag/:name/rss/': {'filters': ['h2', 'nohyphenate'], 'view': 'rsspertag'},
'/pr_rus/articles/': {'view': 'archive', 'template': 'articles.html'},
'/pr_rus/sitemap.xml': {'view': 'sitemap'},
# # Here are some more examples
# # '/:slug/' is a slugified url of your static page's title
# '/:slug/': {'view': 'page'}
# # '/atom/full/' will give you a _complete_ feed of all your entries
# '/atom/full/': {'filters': 'h2', 'view': 'atom', 'num_entries': 1000},
# # a feed containing all entries tagges with 'python'
# '/rss/python/': {'filters': 'h2', 'view': 'rss',
# 'if': lambda e: 'python' in e.tags}
# # a full typography features entry including MathML and Footnotes
# '/:year/:slug': {'filters': ['typography', 'Markdown+Footnotes+MathML'],
# 'view': 'entry'}
# # translations!
# '/:year/:slug/:lang/': {'view': 'translation'}
}
THEME = 'theme'
ENGINE = 'acrylamid.templates.jinja2.Environment'
LANG = "ru_RU.UTF-8"
DATE_FORMAT = '%d.%m.%Y'