-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpelicanconf.py
146 lines (127 loc) · 3.73 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
# General settings
AUTHOR = u'Пурамоца'
SITENAME = u'Мудровања'
SITESUBTITLE = 'Размишљања о којечему'
SITEURL = 'http://strn.github.io'
# Where is content stored
PATH = 'content'
TIMEZONE = 'Europe/Zurich'
LOCALE = 'sr_RS'
DEFAULT_LANG = 'sr'
DATE_FORMATS = {
'sr' : '%d-%b-%Y',
'en' : '%d/%b/%Y'
}
DEFAULT_CATEGORY = 'blog'
DEFAULT_DATE_FORMAT = ('%d %m %Y')
DISPLAY_PAGES_ON_MENU = False
DISPLAY_CATEGORIES_ON_MENU = True
# static paths will be copied under the same name
STATIC_PATHS = [
'static'
]
EXTRA_PATH_METADATA = {
'static/image/favicon.ico' : {'path': 'favicon.ico'}
}
TYPOGRIFY = True
# Markdown (MD) extensions
MD_EXTENSIONS = [ 'codehilite(css_class=highlight)', 'extra', 'headerid', 'admonition', 'smarty' ]
RECENT_ARTICLE_COUNT = 7
DELETE_OUTPUT_DIRECTORY = True
TAG_CLOUD_STEPS = 4 # Count of different font sizes in the tag cloud.
TAG_CLOUD_MAX_ITEMS = 17
# Archive options
YEAR_ARCHIVE_SAVE_AS = 'post/{date:%Y}/index.html'
MONTH_ARCHIVE_SAVE_AS = 'post/{date:%Y}/{date:%m}/index.html'
# Article options
ARTICLE_PATHS = [ 'sr/article' ]
ARTICLE_URL = 'post/{date:%Y}/{date:%m}/{date:%d}/{slug}/'
ARTICLE_SAVE_AS = 'post/{date:%Y}/{date:%m}/{date:%d}/{slug}/index.html'
# Page options
PAGE_PATHS = [ 'sr/page' ]
PAGE_URL = 'page/{slug}.html'
PAGE_SAVE_AS = 'page/{slug}.html'
PAGE_LANG_URL = 'page/{slug}-{lang}.html'
PAGE_LANG_SAVE_AS = 'page/{slug}-{lang}.html'
# Feed generation is usually not desired when developing
FEED_DOMAIN = SITEURL
FEED_RSS = None
FEED_ALL_ATOM = None
CATEGORY_FEED_ATOM = None
TAG_FEED_ATOM = 'feeds/tags/%s.atom.xml'
TAG_FEED_RSS = 'feeds/tags/%s.rss.xml'
TRANSLATION_FEED_ATOM = None
# Uncomment following line if you want document-relative URLs when developing
RELATIVE_URLS = True
# Items appearing in main menu
MENUITEMS = (
( 'Архива', '/archives.html' ),
( 'Ознаке', '/tags.html' ),
( 'О мени', '/page/about.html' ),
( 'Контакт', '/page/contact.html' )
)
# Specify only article that is being written
WRITE_SELECTED = []
# Blogroll
LINKS = False
# Social widget
SOCIAL = ()
# Pagination (articles per page)
DEFAULT_PAGINATION = 3
THEME = 'theme/kernel-org-sr'
# Where to create site
OUTPUT_PATH = 'dev/'
# Whether to copy article sources
OUTPUT_SOURCES = False
# Plugins
PLUGIN_PATHS = [ '/opt/app/p/pelican-plugins' ]
PLUGINS = [ 'asciidoc_reader', 'gravatar', 'tipue_search', 'i18n_subsites', 'neighbors', 'sitemap' ]
# Options for AsciiDoc plugin
ASCIIDOC_OPTIONS = [ "-a source-highlighter=pygments" ]
ASCIIDOC_BACKEND = 'html5'
# Options for i18n_subsites plugin
# mapping: language_code -> settings_overrides_dict
I18N_SUBSITES = {
'en': {
'AUTHOR' : 'Puramotza',
'SITENAME': 'Philosophizing',
'LICENSE' : 'Site licence',
'SITE_DESCRIPTION' : 'Site description',
'EMAIL_SUBSCRIPTION_LABEL' : 'Email subscription',
'EMAIL_FIELD_PLACEHOLDER' : 'Your email address',
'SUBSCRIBE_BUTTON_TITLE' : 'Subscribe',
'MAILCHIMP_FORM_ACTION' : 'Mailchimp form',
'THEME' : 'theme/kernel-org-en',
'SITESUBTITLE' : 'Intelectual juggling',
'LOCALE' : 'en_US',
'DEFAULT_LANG' : 'en',
'ARTICLE_PATHS' : [ 'en/article' ],
'PAGE_PATHS' : [ 'en/page' ],
'OUTPUT_PATH' : 'dev/en',
'ARTICLE_PATHS' : [ 'en/article' ],
'MENUITEMS' : (
( 'Archive', '/en/archives.html' ),
( 'Tags', '/en/tags.html' ),
( 'About me', '/en/page/about.html' ),
( 'Contact', '/en/page/contact.html' )
),
},
}
SITEMAP = {
'format': 'xml',
'priorities': {
'articles': 0.5,
'indexes': 0.5,
'pages': 0.5
},
'changefreqs': {
'articles' : 'monthly',
'indexes' : 'daily',
'pages' : 'monthly'
}
}
# Controlling icon size for RSS and ATOM
FEED_ICON_SIZE_TAG_CLOUD = 24