-
Notifications
You must be signed in to change notification settings - Fork 0
/
pelicanconf.py
63 lines (52 loc) · 1.5 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
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
import os
import sys
AUTHOR = 'Matias Klemola'
SITENAME = 'matiasklemola.com'
SITEURL = 'https://matiasklemola.com'
TIMEZONE = 'Europe/Helsinki'
LOCALE = 'en_US'
DEFAULT_LANG = 'en'
DEFAULT_DATE_FORMAT = '%B %-d, %Y'
DEFAULT_PAGINATION = False
PAGE_URL = '{slug}'
PAGE_SAVE_AS = '{slug}/index.html'
AUTHOR_SAVE_AS = ''
TYPOGRIFY = False
PATH = 'content'
LOAD_CONTENT_CACHE = False
STATIC_PATHS = ['code', 'images', 'videos', 'embed', 'pages']
PAGE_PATHS=['pages']
PLUGIN_PATHS = ['plugins']
PLUGINS = ['readtime']
IGNORE_FILES = ['__pycache__', 'node_modules']
ARTICLE_EXCLUDES = ['embed']
PAGE_EXCLUDES = ['embed']
READERS = {'js': None, 'javascript': None}
DIRECT_TEMPLATES = ['index', 'articles', 'journal']
THEME = './theme'
THEME_STATIC_DIR = '.'
DISPLAY_CATEGORIES_ON_MENU = False
DISPLAY_PAGES_ON_MENU = False
USE_FOLDER_AS_CATEGORY = False
RELATIVE_URLS = True
FEED_ALL_ATOM = None
CATEGORY_FEED_ATOM = None
TRANSLATION_FEED_ATOM = None
AUTHOR_FEED_ATOM = None
AUTHOR_FEED_RSS = None
MARKDOWN = {
'extension_configs': {
'markdown.extensions.codehilite': {'css_class': 'highlight', 'guess_lang': False},
'markdown.extensions.extra': {},
'markdown.extensions.meta': {},
'markdown.extensions.admonition': {},
'markdown_captions': {},
},
'output_format': 'html5',
}
sys.path.append(os.curdir)
sys.path.append(os.path.join(os.curdir, 'content', 'data'))
from pelicandata import *