Convert the whole site to use Pelican instead of Jekyll
This commit is contained in:
75
pelicanconf.py
Normal file
75
pelicanconf.py
Normal file
@@ -0,0 +1,75 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
from my_plugins import custom_roles
|
||||
|
||||
AUTHOR = 'Gergely Polonkai'
|
||||
SITENAME = 'Gergely Polonkai'
|
||||
SITEURL = ''
|
||||
|
||||
PATH = 'content'
|
||||
STATIC_PATHS = [
|
||||
'.well-known',
|
||||
'images',
|
||||
'failmeter',
|
||||
'favicon.ico',
|
||||
'gerrit-dashboard-generator',
|
||||
'pgpkey',
|
||||
'minari',
|
||||
'symbolon',
|
||||
'symbolon/index.html',
|
||||
'gergely@polonkai.eu.asc',
|
||||
]
|
||||
|
||||
TIMEZONE = 'Europe/Budapest'
|
||||
|
||||
DEFAULT_LANG = 'en'
|
||||
|
||||
DEFAULT_METADATA = {
|
||||
'status': 'draft',
|
||||
}
|
||||
|
||||
# Feed generation is usually not desired when developing
|
||||
FEED_ALL_ATOM = 'atom.xml'
|
||||
CATEGORY_FEED_ATOM = '{slug}/atom.xml'
|
||||
TRANSLATION_FEED_ATOM = None
|
||||
AUTHOR_FEED_ATOM = None
|
||||
AUTHOR_FEED_RSS = None
|
||||
|
||||
DISPLAY_PAGES_ON_MENU = True
|
||||
|
||||
# Blogroll
|
||||
LINKS = (
|
||||
('Pelican', 'http://getpelican.com/'),
|
||||
('Python.org', 'http://python.org/'),
|
||||
('Jinja2', 'http://jinja.pocoo.org/'),
|
||||
)
|
||||
|
||||
# Social widget
|
||||
SOCIAL = (
|
||||
('Email', 'mailto:gergely@polonkai.eu'),
|
||||
('Stack Exchange', 'http://stackexchange.com/users/1369500/gergelypolonkai'),
|
||||
('Skype', 'skype:gergely.polonkai'),
|
||||
('Twitter', 'http://twitter.com/GergelyPolonkai'),
|
||||
('Tumblr', 'http://gergelypolonkai.tumblr.com'),
|
||||
('deviantArt', 'http://gergelypolonkai.deviantart.com'),
|
||||
('Hashnode', 'https://hashnode.com/@gergelypolonkai'),
|
||||
('Keybase', 'https://keybase.io/gergelypolonkai'),
|
||||
('Liberapay', 'https://liberapay.com/gergelypolonkai'),
|
||||
('Mastodon', 'https://social.polonkai.eu/@gergely'),
|
||||
('Pay me a coffee', 'https://paypal.me/GergelyPolonkai/250'),
|
||||
)
|
||||
|
||||
DEFAULT_PAGINATION = 10
|
||||
|
||||
# Uncomment following line if you want document-relative URLs when developing
|
||||
RELATIVE_URLS = True
|
||||
USE_FOLDER_AS_CATEGORY = True
|
||||
|
||||
TAG_URL = 'tag/{slug}/'
|
||||
TAG_SAVE_AS = 'tag/{slug}/index.html'
|
||||
|
||||
THEME = 'my_theme'
|
||||
|
||||
TYPOGRIFY = True
|
||||
|
||||
PLUGINS = [custom_roles]
|
Reference in New Issue
Block a user