-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpelicanconf.py
More file actions
64 lines (50 loc) · 1.75 KB
/
pelicanconf.py
File metadata and controls
64 lines (50 loc) · 1.75 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
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
import datetime;
# No Cache
LOAD_CONTENT_CACHE = False;
# Site Information
SITENAME = 'MSAIL';
SITEURL = '';
AUTHOR = 'MSAIL';
TIMEZONE = 'America/Detroit';
DEFAULT_LANG = 'en';
# Basic Settings
PATH = 'content';
THEME = "./theme";
DEFAULT_PAGINATION = False;
DEFAULT_DATE_FORMAT = "%a, %d %b %Y";
# Custom Settings (custom variables defined by me, to be passed to templates)
SITE_LAST_MODIFIED = datetime.datetime.now();
## Pages, Paths, and URLs ------------------------------------------------------
# Articles & Pages
ARTICLE_PATHS = ['events'];
PAGE_ORDER_BY = "order";
# Static Paths: Simple static pages, with custom URLS
STATIC_PATHS = ['images', 'static'];
EXTRA_PATH_METADATA = {
'static/favicon.ico': {'path': 'favicon.ico'}
};
# URL Settings (different from publishconf.py)
ARTICLE_URL = "events/{category}/{date:%Y}/{date:%b}/{date:%d}/{slug}";
ARTICLE_SAVE_AS = 'events/{category}/{date:%Y}/{date:%b}/{date:%d}/{slug}.html'
PAGE_URL = '{slug}'
PAGE_SAVE_AS = '{slug}.html'
## Content Generation ----------------------------------------------------------
# Delete output directory when regenerating, but save Git repositories.
DELETE_OUTPUT_DIRECTORY = True
OUTPUT_RETENTION = [".git", ".gitignore", ".git/*"]
OUTPUT_PATH = "/MSAIL.github.io"
## External Links / Plugins ----------------------------------------------------
# Plugins
#PLUGIN_PATHS = ['plugins'];
#PLUGINS = ["render_math", "simple_footnotes"];
# Feeds (disabled while developing)
FEED_ALL_ATOM = None;
CATEGORY_FEED_ATOM = None;
TRANSLATION_FEED_ATOM = None;
AUTHOR_FEED_ATOM = None;
AUTHOR_FEED_RSS = None;
# Uncomment following line if you want document-relative URLs when developing
#RELATIVE_URLS = True