-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpelicanconf.py
84 lines (73 loc) · 2.48 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
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
import os
AUTHOR = u'Manufactura Independente'
SITENAME = u'Manufactura Independente'
SITESUBTITLE = "Libre Graphics & Design research studio"
SITEURL = 'http://manufacturaindependente.org'
SITE_DESCRIPTION = 'Manufactura Independente, Libre Graphics & Design Research Studio'
SITE_LOGO = '/theme/images/manufactura.png'
TIMEZONE = 'Europe/Lisbon'
DEFAULT_LANG = u'en'
PATH = 'content'
THEME = 'theme/manufactura'
UNDOCUMENTED_TAG = 'undocumented'
FEATURED_TAG = 'featured'
# Custom URL structure
ARTICLE_URL = '{slug}/'
ARTICLE_SAVE_AS = '{slug}/index.html'
PAGE_URL = '{slug}/'
PAGE_SAVE_AS = '{slug}/index.html'
DRAFT_URL = 'private/{slug}/'
DRAFT_SAVE_AS = 'private/{slug}/index.html'
DRAFT_LANG_URL = 'private/{slug}-{lang}/'
DRAFT_LANG_SAVE_AS = 'private/{slug}-{lang}/index.html'
# Set up extra files to include in deploy
STATIC_SAVE_AS = '{path}'
STATIC_URL = '{path}'
STATIC_PATHS = [
'media',
'extra/htaccess',
'files',
]
EXTRA_PATH_METADATA = {
'extra/htaccess': {'path': '.htaccess'},
'files': {'path': 'files'},
}
BASE_PATH = os.path.dirname(os.path.realpath(__file__))
OUTPUT_PATH = "output/"
PLUGIN_PATHS = ["plugins", THEME + "/plugins"]
PLUGINS = ["gallery", "representative_image", "assets"]
# Webassets plugin
ASSET_CONFIG = (
('sass_style', 'compact'),
('cache', False),
('manifest', False),
('url_expire', False),
('versions', False),
('sass_debug_info', True),
)
ASSET_SOURCE_PATHS = ['static/css']
# Gallery plug-in
GALLERY_FOLDER = "galleries"
GALLERY_SRC_PATH = "%s%s" % (BASE_PATH, "gallery_src")
GALLERY_OUTPUT_PATH = "%s%s%s" % (BASE_PATH, OUTPUT_PATH, GALLERY_FOLDER)
GALLERY_REGENERATE_EXISTING = False
GALLERY_PRESETS = [
{"name": "thumb", "actions": [{"type": "fit", "height": 100, "width": 100, "from": (0.5, 0.5)}]},
{"name": "slider", "actions": [{"type": "fit", "height": 300, "width": 900, "from": (0.5, 0.5)}]},
{"name": "large", "actions": [{"type": "resize", "height": 640, "width": 850, "from": (0.5, 0.5)}]},
{"name": "thumb_greyscale",
"actions": [
{"type": "fit", "height": 100, "width": 100, "from": (0.5, 0.5)},
{"type": "greyscale"}
]},
]
# Feed generation is usually not desired when developing
FEED_ALL_ATOM = None
CATEGORY_FEED_ATOM = None
TRANSLATION_FEED_ATOM = None
# Uncomment following line if you want document-relative URLs when developing
RELATIVE_URLS = True
DEFAULT_PAGINATION = False