-
Notifications
You must be signed in to change notification settings - Fork 0
/
pelicanconf.py
79 lines (68 loc) · 2.46 KB
/
pelicanconf.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
AUTHOR = 'Vladimir'
SITENAME = 'riuson.com'
SITEURL = ''
DEFAULT_LANG = 'ru'
LOCALE = 'ru_RU'
PATH = 'content'
TIMEZONE = 'Asia/Yekaterinburg'
# 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
DEFAULT_PAGINATION = 10
# Uncomment following line if you want document-relative URLs when developing
#RELATIVE_URLS = True
USE_FOLDER_AS_CATEGORY = False
DEFAULT_CATEGORY = 'misc'
DISPLAY_CATEGORIES_ON_MENU = False
ARTICLE_URL = '{lang}/posts/{date:%Y}/{date:%m}/{date:%d}/{slug}'
ARTICLE_LANG_URL = '{lang}/posts/{date:%Y}/{date:%m}/{date:%d}/{slug}'
ARTICLE_SAVE_AS = '{lang}/posts/{date:%Y}/{date:%m}/{date:%d}/{slug}/index.html'
ARTICLE_LANG_SAVE_AS = '{lang}/posts/{date:%Y}/{date:%m}/{date:%d}/{slug}/index.html'
PAGE_URL = '{lang}/{slug}'
PAGE_LANG_URL = '{lang}/{slug}'
PAGE_SAVE_AS = '{lang}/{slug}/index.html'
PAGE_LANG_SAVE_AS = '{lang}/{slug}/index.html'
LOAD_CONTENT_CACHE = False
DATE_FORMATS = {
'en': '%a, %d %b %Y',
'ru': '%d %B %Y г., %a',
}
ARTICLE_PATHS = ['articles']
PAGES_PATHS = ['pages']
THEME = 'theme'
STATIC_PATHS = ['images', 'redirects']
FILENAME_METADATA = r'^(?P<date>\d{4}-\d{2}-\d{2})-(?P<slug>.*)-(?P<lang>\w{2})$'
SUMMARY_MAX_LENGTH = 10
MARKDOWN = {
'extensions' : ['markdown.extensions.codehilite'],
'extension_configs': {
'markdown.extensions.codehilite': {'css_class': 'highlight'},
'markdown.extensions.fenced_code': {},
'markdown.extensions.attr_list': {},
}
}
EXTRA_PATH_METADATA = {
'redirects/lcd-image-converter.html': {'path': 'lcd-image-converter/index.html'},
'redirects/lcd-image-converter-download.html': {'path': 'lcd-image-converter/download/index.html'},
'redirects/lcd-image-converter-changelog.html': {'path': 'lcd-image-converter/changelog/index.html'}
}
#PLUGIN_PATHS = ["../pelican-plugins"]
#PLUGINS = ["i18n_subsites"]
#I18N_SUBSITES = {
# 'en': {
# 'SITENAME': 'riuson.com',
# 'LOCALE': 'en_US', #This is somewhat redundant with DATE_FORMATS, but IMHO more convenient
# },
# 'ru': {
# 'SITENAME': 'riuson.com',
# 'LOCALE': 'ru_RU', #This is somewhat redundant with DATE_FORMATS, but IMHO more convenient
# },
#}
#I18N_UNTRANSLATED_ARTICLES = 'remove'
#I18N_UNTRANSLATED_PAGES = 'remove'