-
-
Save Flobin/306c8833fdf2e89ccce3bc7d9d48c42b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- # | |
from __future__ import unicode_literals | |
AUTHOR = 'Robin Berghuijs' | |
SITEURL = 'https://robin.berghuijs.design/' | |
PATH = 'content' | |
TIMEZONE = 'Europe/Amsterdam' | |
DEFAULT_DATE = 'fs' | |
DEFAULT_LANG = 'nl' | |
# 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', 'http://getpelican.com/'), | |
# ('Python.org', 'http://python.org/'), | |
# ('You can modify those links in your config file', '#'),) | |
# Social widget | |
# SOCIAL = (('You can add links in your config file', '#'), | |
# ('Another social link', '#'),) | |
DEFAULT_PAGINATION = 10 | |
SUMMARY_MAX_LENGTH = 140 | |
# Uncomment following line if you want document-relative URLs when developing | |
RELATIVE_URLS = True | |
PLUGIN_PATHS = ['pelican-plugins'] | |
PLUGINS = ['i18n_subsites','neighbors','sitemap'] | |
# these are the defaults | |
SITEMAP = { | |
'format': 'xml', | |
# 'priorities': { | |
# 'articles': 0.5, | |
# 'indexes': 0.5, | |
# 'pages': 0.5 | |
# }, | |
# 'changefreqs': { | |
# 'articles': 'monthly', | |
# 'indexes': 'daily', | |
# 'pages': 'monthly' | |
# } | |
} | |
THEME = 'themes/flobin' | |
OUTPUT_PATH = 'output/' | |
SITENAME = 'Robin Berghuijs Design' | |
SITE_DESCRIPTION = 'Robin Berghuijs is een creatieve grafisch ontwerper, web designer en developer, wonend in Den Haag. Hij maakt logo’s, websites, webwinkels en nog veel meer.' | |
INDEX_SAVE_AS = 'blog/index.html' | |
INDEX_URL = 'blog' | |
MENUITEMS = [ | |
('Blog', '/blog/') | |
] | |
CSS_FILE = 'main.css' | |
JS_FILE = 'main.js' | |
I18N_SUBSITES = { | |
'en': { | |
'THEME': 'themes/flobin', | |
'OUTPUT_PATH': 'output/en/', | |
'SITENAME': 'Robin Berghuijs Design', | |
'SITE_DESCRIPTION': 'Robin Berghuijs is a creative graphic, web, and UX designer, as well as web developer, based in The Hague (Netherlands).', | |
'INDEX_SAVE_AS': 'blog/index.html', | |
'INDEX_URL': 'blog', | |
'MENUITEMS': [ | |
('Blog','/en/blog/'), | |
], | |
} | |
} | |
JINJA_ENVIRONMENT = {'extensions': 'jinja2.ext.i18n'} | |
I18N_GETTEXT_DOMAIN = 'flobin' | |
languages_lookup = { | |
'en': 'English', | |
'nl': 'Nederlands', | |
} | |
def lookup_lang_name(lang_code): | |
return languages_lookup[lang_code] | |
JINJA_FILTERS = { | |
'lookup_lang_name': lookup_lang_name, | |
} | |
DELETE_OUTPUT_DIRECTORY = True | |
PAGE_URL = '{permalink}/' | |
PAGE_SAVE_AS = '{permalink}/index.html' | |
ARTICLE_URL = 'blog/{permalink}/' | |
ARTICLE_SAVE_AS = 'blog/{permalink}/index.html' | |
YEAR_ARCHIVE_SAVE_AS = '' | |
MONTH_ARCHIVE_SAVE_AS = '' | |
DAY_ARCHIVE_SAVE_AS = '' | |
AUTHOR_SAVE_AS = '' | |
STATIC_PATHS = [ | |
'images', | |
'ddpanorama', | |
'extra/robots.txt', | |
'extra/humans.txt', | |
'extra/favicon.ico', | |
'extra/favicon.png', | |
'extra/.htaccess', | |
'formspree_tutorial' | |
] | |
EXTRA_PATH_METADATA = { | |
'extra/robots.txt': {'path': 'robots.txt'}, | |
'extra/humans.txt': {'path': 'humans.txt'}, | |
'extra/favicon.ico': {'path': 'favicon.ico'}, | |
'extra/favicon.png': {'path': 'favicon.png'}, | |
'extra/.htaccess': {'path': '.htaccess'}, | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
blinker==1.4 | |
docutils==0.14 | |
feedgenerator==1.9 | |
Jinja2==2.9.6 | |
Markdown==2.6.8 | |
MarkupSafe==1.0 | |
pelican==3.7.1 | |
Pygments==2.2.0 | |
python-dateutil==2.6.1 | |
pytz==2017.2 | |
six==1.10.0 | |
Unidecode==0.4.21 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment