-
Notifications
You must be signed in to change notification settings - Fork 0
/
pelicanconf.py
106 lines (82 loc) · 2.6 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
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
AUTHOR = 'Will Dietz'
SITENAME = "wdtz / Will Dietz"
SITE_TAGLINE = "Where There's a Will There's a Way"
TIMEZONE = 'America/Chicago'
DEFAULT_DATE_FORMAT = '%a %m/%d/%y'
DEFAULT_LANG = 'en'
# Feed generation is usually not desired when developing
FEED_ALL_ATOM = None
CATEGORY_FEED_ATOM = None
TRANSLATION_FEED_ATOM = None
FEED_ATOM = None
FEED_RSS = None
# Tag cloud settings
TAG_CLOUD_STEPS = 4
TAG_CLOUD_MAX_ITEMS = 100
TAG_CLOUD_SORTING = 'alphabetically'
THEME_CHANGER = True
DEV_THEMES = [
'Cerulean',
'Cosmo',
'Cyborg',
'Darkly',
'Flatly',
'Journal',
'Lumen',
'Readable',
'Simplex',
'Slate',
'Spacelab',
'Superhero',
'United',
'Yeti',
]
# Blogroll
# LINKS = (('Pelican', 'http://getpelican.com/'),
# ('Python.org', 'http://python.org/'),
# ('Jinja2', 'http://jinja.pocoo.org/'),
# ('You can modify those links in your config file', '#'),)
# Social widget
SOCIAL = (
('Email', 'mailto:w@wdtz.org', 'fas fa-envelope'),
('Mastodon', 'https://mastodon.social/@wdtz', 'fab fa-mastodon'),
('Twitter', 'https://twitter.com/wdtz', 'fab fa-twitter'),
('Github', 'https://github.com/dtzWill', 'fab fa-github'),
('#allvm on OFTC', 'https://riot.im/app/#/room/#_oftc_#allvm:matrix.org', 'fas fa-comment'),)
ACADEMIC = (
('Google Scholar', 'https://scholar.google.com/citations?user=DIww2AMAAAAJ&hl=en', 'ai ai-google-scholar'),
('ResearchGate', 'https://www.researchgate.net/profile/Will_Dietz', 'ai ai-researchgate'),
('ORCID', 'https://orcid.org/0000-0001-7004-2343', 'ai ai-orcid'),)
DEFAULT_PAGINATION = 5
DEFAULT_ORPHANS = 0
# Uncomment following line if you want document-relative URLs when developing
RELATIVE_URLS = True
USE_FOLDER_AS_CATEGORY = True
DISPLAY_PAGES_ON_MENU = True
THEME = "bootstraped"
DEFAULT_TRUNCATE = 500
NON_GENERIC_BOOTSTRAP = "cyborg"
# Typographic improvements
TYPOGRIFY = True
TWITTER_USERNAME = "wdtz"
SUMMARY_END_MARKER = "PELICAN_END_SUMMARY"
LOAD_CONTENT_CACHE = False
CACHE_CONTENT = False
DELETE_OUTPUT_DIRECTORY = True
PLUGIN_PATHS = ["plugins"]
PLUGINS = ["plugin_pipeline", "neighbors", "optimize_images", "tag_cloud"]
PLUGIN_PIPELINE = [ "wrap_figures", "replace_tt", "summary", "remove_summary_footnotes", "nbsp_footnotes", "unify_footnotes" ]
# Favicon support
STATIC_PATHS = [
'extra/favicon.ico',
'images',
'academicons'
]
EXTRA_PATH_METADATA = {
'extra/favicon.ico': {'path': 'favicon.ico'},
'images': {'path': 'images'},
'academicons': {'path': 'academicons'}
}