-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpelicanconf.py
More file actions
118 lines (96 loc) · 3.86 KB
/
pelicanconf.py
File metadata and controls
118 lines (96 loc) · 3.86 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
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
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
AUTHOR = u'OCAD University'
SITENAME = u'MGDS-PET'
#SITEURL = 'https://github.com/MGDS-PET/mgds-pet.github.io'
TIMEZONE = 'America/Toronto'
DEFAULT_LANG = u'en'
#GITHUB_URL = 'http://github.com/ametaireau/'
DOCUTIL_CSS = True
# custom page generated with a jinja2 template
#TEMPLATE_PAGES = {'pages/jinja2_template.html': 'jinja2_template.html'}
PATH = 'content'
DISPLAY_BREADCRUMBS = False # for pages this just shows page title
#DISPLAY_ARTICLE_INFO_ON_INDEX = True
DISPLAY_CATEGORY_IN_BREADCRUMBS = False # only works for articles (dynamic content)
HIDE_SIDEBAR = True
#TAG_SAVE_AS = ''
TAGS_SAVE_AS = 'tags.html'
DISPLAY_TAGS_ON_SIDEBAR = True
DISPLAY_TAGS_INLINE = True
TAG_CLOUD_STEPS = 4
TAG_CLOUD_MAX_ITEMS = 100
DISPLAY_CATEGORIES_ON_SIDEBAR = False
DISPLAY_RECENT_POSTS_ON_SIDEBAR = False
BOOTSTRAP_NAVBAR_INVERSE = False #True -> becomes blue
#dynamic content = 'articles'
ARTICLE_PATHS = ['articles'] #['articles/components', 'articles/devices', 'articles/ideas', 'articles/team']
USE_FOLDER_AS_CATEGORY = True #eg. 'blog' #only works for articles (dynamic content)
DISPLAY_CATEGORIES_ON_MENU = False
ARTICLE_SAVE_AS = 'articles/{date:%Y}/{slug}.html' #must be same as article_url below
ARTICLE_URL = 'articles/{date:%Y}/{slug}.html'
#SLUGIFY_SOURCE = 'title' #use title field
#SLUGIFY_SOURCE = 'basename' #use file name
#static content = 'pages'
STATIC_PATHS = ['pages', 'pdfs', 'images', 'extra/custom.css'] # 'downloads']
DISPLAY_PAGES_ON_MENU = False
FAVICON = 'images/_site/favicon.ico'
#pages are manually set
# PAGE_SAVE_AS = 'pages/{slug}.html' #must be same as page_url below
# PAGE_URL = 'pages/{slug}.html' #The URL we will use to link to a page.
MENUITEMS = [
#('Home', '/'), #not needed
#mixing dynamic and static content in menu:
('Blog', '/category/blog.html'), #dynamic = articles
('Research', '/pages/research/research.html'), #static = pages
('Components', '/pages/components/components.html'),
('Prototypes', '/pages/prototypes/prototypes.html'),
#('Reports', '/pages/reports/reports.html'),
('Team', '/pages/team/team.html'),
('A', '/pages/paperA.html'),
('B', '/pages/paperB.html')
]
#SITELOGO = 'images/favicon.ico'
#PDF_GENERATOR = False #output goes to output/pdf
PLUGIN_PATHS = ["plugins", "/plugins"]
PLUGINS = [ "plantuml" ] #"sitemap" "gallery" "liquid_tags" "pdf" "sort_tags" "subcategory"
#PLUGINS = ["pdf"] #, "liquid_tags", "sitemap"]
DEFAULT_DATE = 'fs'
TYPOGRIFY = True
THEME = 'themes/bootstrap'
BOOTSTRAP_THEME = 'yeti' #others available 'cosmo' etc. all included already. See http://bootswatch.com/
CUSTOM_CSS = 'theme/css/custom.css' #specify where Pelican puts the custom css file
# Tell Pelican to change the path to 'theme/css/custom.css' in the output dir
# EXTRA_PATH_METADATA = {
# 'extra/custom.css': {'path': 'theme/css/custom.css'}
# }
EXTRA_PATH_METADATA = {
'/themes/bootstrap/static/css/custom.css': {'path': 'theme/css/custom.css'}
}
#load this file in addition to the css files in the bootstrap theme
#BANNER = 'images/bluePlanet.png'
#BANNER_SUBTITLE = 'Banner subtitle'
#BANNER_ALL_PAGES = True
DEFAULT_PAGINATION = False
# Uncomment following line if you want document-relative URLs when developing
RELATIVE_URLS = False
# 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
LOAD_CONTENT_CACHE = False # avoids caching of content during development
# Social widget
# SOCIAL = (
# ('Google+ Images', '#'),
# ('SoundCloud Adam', 'https://soundcloud.com/adamtindale'),
# )
# Blogroll
# LINKS = (
# ('OCADU University', 'http://www.ocadu.ca/'),
# ('DFI@OCADU', 'http://www.ocadu.ca/academics/faculty-of-las-and-sis/digital-futures-initiative.htm'),
# ('Adam Tindale', 'adamtindale.com'),
# ('Rhizome', 'http://rhizome.org/'),
# )