-
Notifications
You must be signed in to change notification settings - Fork 0
/
pelicanconf.py
52 lines (41 loc) · 1.58 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
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
AUTHOR = 'Ryan'
SITENAME = 'cerris'
SITEURL = 'https://localhost:8000'
TAGLINE = "cloudy and tree-like thoughts"
ARTICLE_URL = 'posts/{date:%Y}/{date:%m}/{date:%d}/{slug}/'
ARTICLE_SAVE_AS = 'posts/{date:%Y}/{date:%m}/{date:%d}/{slug}/index.html'
PATH = 'content'
TIMEZONE = 'America/Denver'
DATE_FORMAT = '%Y-%m-%d'
DEFAULT_LANG = u'en'
DEFAULT_METADATA = {'status':'draft'}
# 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
# Blogroll
LINKS = (('Pelican', 'https://getpelican.com/'),
('Python.org', 'https://python.org/'),
('Jinja2', 'https://jinja.pocoo.org/'),
('You can modify those links in your config file', '#'),)
MENUITEMS = [
('About', '/pages/about.html'),
('Portfolio', '/pages/portfolio.html'),
('Tags', '/tags.html'),
('Contact', '#'),
]
SOCIAL = [
'<script type="text/javascript" src="//www.redditstatic.com/button/button1.js"></script>',
"""
<a href="https://twitter.com/share" class="twitter-share-button" data-via="funtime_bobby">Tweet</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+':https://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
"""
]
DEFAULT_PAGINATION = False
RELATIVE_URLS = True
THEME = 'theme'