-
Notifications
You must be signed in to change notification settings - Fork 6
/
pelicanconf.py
89 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
84
85
86
87
88
89
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
AUTHOR = 'The DIYnamics Team'
SITENAME = 'DIYnamics'
SITEURL = ''
SITESUBTITLE = 'Affordable materials for geoscience teaching demonstrations'
SITEIMAGE = '/images/homepage_slideshow.gif'
DESCRIPTION = ('DIYnamics: affordable, accessible Earth science demonstration '
'and teaching materials')
TIMEZONE = 'America/Los_Angeles'
DEFAULT_LANG = 'en'
GOOGLE_ANALYTICS = 'UA-146133798-1'
IGNORE_FILES = ['.#*', '__pycache__']
INDEX_SAVE_AS = '/pages/blog.html'
PATH = 'content'
ARTICLE_PATHS = ['blog']
PAGE_PATHS = ['pages', 'guides']
STATIC_PATHS = ['images', 'pdfs']
ARTICLE_URL = 'blog/{slug}.html'
ARTICLE_SAVE_AS = 'blog/{slug}.html'
DRAFT_URL = 'blog/drafts/{slug}.html'
DRAFT_SAVE_AS = 'blog/drafts/{slug}.html'
CATEGORY_URL = 'blog/category/{slug}.html'
CATEGORY_SAVE_AS = 'blog/category/{slug}.html'
TAG_URL = 'blog/tag/{slug}.html'
TAG_SAVE_AS = 'blog/tag/{slug}.html'
AUTHOR_URL = 'blog/author/{slug}.html'
AUTHOR_SAVE_AS = 'blog/author/{slug}.html'
ICONS = [
['twitter', 'https://twitter.com/DIYnamicsTeam'],
['youtube', 'https://www.youtube.com/channel/UCnUHxOSVY4G4OFbF8XL1qUg'],
['github', 'https://github.com/DIYnamics/diynamics.github.io']
]
DISPLAY_PAGES_ON_MENU = False
DISPLAY_CATEGORIES_ON_MENU = True
USE_FOLDER_AS_CATEGORY = True
# Slight hack to get pages ordered how we want them in the Header. The LINKS
# setting is unique to the "alchemy" theme that we're using, and I've also
# modified the theme so that the items in it open in the same tab, not a new
# tab.
LINKS = [
['about', '/pages/about.html'],
['kits', '/pages/kits.html'],
['diyrotate', '/pages/diyrotate.html'],
['videos', 'https://www.youtube.com/channel/UCnUHxOSVY4G4OFbF8XL1qUg'],
['teaching', '/pages/teaching.html'],
['events', '/pages/events.html'],
['blog', '/pages/blog.html'],
['links', '/pages/links.html'],
['team', '/pages/people.html'],
['acknowledgments', '/pages/acknowledgments.html'],
]
FEED_ALL_ATOM = None
CATEGORY_FEED_ATOM = None
TRANSLATION_FEED_ATOM = None
AUTHOR_FEED_ATOM = None
AUTHOR_FEED_RSS = None
CACHE_CONTENT = True
CACHE_PATH = 'cache'
LOAD_CONTENT_CACHE = True
DEFAULT_PAGINATION = False
THEME = 'themes/pelican-alchemy/alchemy'
PLUGIN_PATHS = ['plugins']
PLUGINS = [
'liquid_tags',
'liquid_tags.img',
'liquid_tags.video',
'liquid_tags.youtube',
]
TYPOGRIFY = True
DISQUS_SITENAME = "diynamics"
TWITTER_USERNAME = "DIYnamicsTeam"