This repository was archived by the owner on Jun 17, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpelicanconf.py
More file actions
56 lines (41 loc) · 1.39 KB
/
pelicanconf.py
File metadata and controls
56 lines (41 loc) · 1.39 KB
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
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
AUTHOR = u'Kyle Machulis'
SITENAME = u'OpenYou'
SITEURL = 'http://www.openyou.org'
TIMEZONE = 'US/Pacific'
MARKUP = (('md', 'markdown'))
DEFAULT_LANG = u'en'
# Feed generation is usually not desired when developing
FEED_ATOM = ('atom_feed.xml')
CATEGORY_FEED_ATOM = None
FEED_ALL_ATOM = None
FEED_DOMAIN = SITEURL
TRANSLATION_FEED = None
FEED_MAX_ITEMS = 10
THEME = "themes/openyou"
# Relative to content dir
PAGE_DIR = 'pages'
PAGE_URL = '{slug}/'
PAGE_SAVE_AS = '{slug}/index.html'
ARTICLE_DIR = 'posts'
ARTICLE_URL = '{date:%Y}/{date:%m}/{date:%d}/{slug}/'
ARTICLE_SAVE_AS = '{date:%Y}/{date:%m}/{date:%d}/{slug}/index.html'
CATEGORY_SAVE_AS = False
TAG_SAVE_AS = False
AUTHOR_SAVE_AS = False
DAY_ARCHIVE_SAVE_AS = '{date:%Y}/{date:%m}/{date:%d}/index.html'
MONTH_ARCHIVE_SAVE_AS = '{date:%Y}/{date:%m}/index.html'
YEAR_ARCHIVE_SAVE_AS = '{date:%Y}/index.html'
DEFAULT_PAGINATION = 5
# Uncomment following line if you want document-relative URLs when developing
RELATIVE_URLS = True
PLUGIN_PATH = 'plugins'
PLUGINS = ['summary', 'neighbors', ]
SUMMARY_END_MARKER = "<!--more-->"
SUMMARY_MAX_LENGTH = None
FILES_TO_COPY = (('extras/robots.txt', 'robots.txt'),
('extras/htaccess', '.htaccess'))
TEMPLATE_PAGES = {'templates/404.html': "404/index.html"}
MD_EXTENSIONS = ['codehilite', 'extra', 'video']