2019-01-09 15:21:22 +00:00
|
|
|
|
#!/usr/bin/env python
|
2020-06-12 06:52:44 +00:00
|
|
|
|
# coding: utf-8
|
2019-01-09 15:21:22 +00:00
|
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
|
|
|
|
|
AUTHOR = 'Fred'
|
|
|
|
|
DEFAULT_LANG = 'fr'
|
|
|
|
|
DEFAULT_PAGINATION = False
|
|
|
|
|
PATH = 'content'
|
2019-01-19 16:53:29 +00:00
|
|
|
|
SITEURL = 'http://127.0.0.1:8000'
|
2019-01-18 23:34:35 +00:00
|
|
|
|
RELATIVE_URLS = False
|
2020-09-06 21:56:42 +00:00
|
|
|
|
SITENAME = 'pro[zind]'
|
2020-06-12 06:52:44 +00:00
|
|
|
|
SITE_SOURCE = "https://gitlab.com/free_zed/free_zed.gitlab.io"
|
|
|
|
|
SITESUBTITLE = "Histoires d'un <foobar> perfectioniste sous pression…"
|
2019-01-09 15:21:22 +00:00
|
|
|
|
TIMEZONE = 'Europe/Paris'
|
|
|
|
|
|
|
|
|
|
# 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
|
2019-01-20 17:51:24 +00:00
|
|
|
|
LINKS = (('Archives', '/articles/'),
|
|
|
|
|
('Tags', '/tags/'),
|
2020-09-06 21:56:42 +00:00
|
|
|
|
('Contact', '/contact/'),)
|
2019-01-09 15:21:22 +00:00
|
|
|
|
|
|
|
|
|
# Social widget
|
2019-01-22 17:40:05 +00:00
|
|
|
|
SOCIAL = (('gitlab', 'https://gitlab.com/free_zed'),
|
2020-06-12 06:52:44 +00:00
|
|
|
|
('stack-overflow', 'https://stackoverflow.com/users/6709630/freezed'),
|
|
|
|
|
('github', 'https://github.com/freezed/'),
|
|
|
|
|
('RSS', 'feeds/all.atom.xml'),)
|
2019-01-09 15:21:22 +00:00
|
|
|
|
|
|
|
|
|
# my configuration
|
|
|
|
|
DELETE_OUTPUT_DIRECTORY = True
|
|
|
|
|
OUTPUT_PATH = 'public/'
|
2019-01-14 08:17:12 +00:00
|
|
|
|
|
|
|
|
|
STATIC_PATHS = [
|
|
|
|
|
'extra',
|
|
|
|
|
]
|
|
|
|
|
EXTRA_PATH_METADATA = {
|
|
|
|
|
'extra/robots.txt': {'path': 'robots.txt'},
|
|
|
|
|
'extra/favico.ico': {'path': 'favico.ico'},
|
|
|
|
|
}
|
2019-01-20 19:50:37 +00:00
|
|
|
|
FAVICO = EXTRA_PATH_METADATA['extra/favico.ico']['path']
|
2019-01-18 23:09:37 +00:00
|
|
|
|
DISPLAY_CATEGORIES_ON_MENU = True
|
2020-06-12 06:52:44 +00:00
|
|
|
|
THEME = 'theme-uberspot/'
|
2019-01-18 23:09:37 +00:00
|
|
|
|
DEFAULT_METADATA = {
|
2019-01-21 01:35:15 +00:00
|
|
|
|
'Status': 'draft',
|
2019-01-18 23:09:37 +00:00
|
|
|
|
'Category': 'Bloc-notes',
|
|
|
|
|
}
|
2019-01-20 17:51:24 +00:00
|
|
|
|
|
|
|
|
|
# URL building
|
|
|
|
|
ARCHIVES_SAVE_AS = 'articles/index.html'
|
|
|
|
|
ARCHIVES_URL = 'articles/'
|
|
|
|
|
ARTICLE_LANG_SAVE_AS = 'articles/{date:%Y}/{date:%m}/{slug}/{lang}/index.html'
|
|
|
|
|
ARTICLE_LANG_URL = 'articles/{date:%Y}/{date:%m}/{slug}/{lang}/'
|
|
|
|
|
ARTICLE_SAVE_AS = 'articles/{date:%Y}/{date:%m}/{slug}/index.html'
|
|
|
|
|
ARTICLE_URL = 'articles/{date:%Y}/{date:%m}/{slug}/'
|
2019-01-29 10:59:23 +00:00
|
|
|
|
AUTHOR_URL = 'a-propos/'
|
|
|
|
|
CATEGORY_SAVE_AS = '{slug}/index.html'
|
|
|
|
|
CATEGORY_URL = '{slug}/'
|
2020-07-25 21:06:29 +00:00
|
|
|
|
CATEGORIES_URL = 'categories/'
|
2019-01-29 10:59:23 +00:00
|
|
|
|
PAGE_LANG_SAVE_AS = '{slug}/{lang}/index.html'
|
|
|
|
|
PAGE_LANG_URL = '{slug}/{lang}/'
|
|
|
|
|
PAGE_SAVE_AS = '{slug}/index.html'
|
|
|
|
|
PAGE_URL = '{slug}/'
|
2019-01-20 17:51:24 +00:00
|
|
|
|
TAGS_SAVE_AS = 'tags/index.html'
|
|
|
|
|
TAGS_URL = 'tags/'
|
|
|
|
|
TAG_SAVE_AS = 'tags/{slug}/index.html'
|
|
|
|
|
TAG_URL = 'tags/{slug}/'
|
|
|
|
|
YEAR_ARCHIVE_SAVE_AS = 'articles/{date:%Y}/index.html'
|
|
|
|
|
YEAR_ARCHIVE_URL = 'articles/{date:%Y}/'
|
2019-01-20 22:36:15 +00:00
|
|
|
|
|
|
|
|
|
# URL of the repo to link build commit
|
2020-09-06 21:56:42 +00:00
|
|
|
|
REPO_COMMIT_URL = 'https://gitlab.com/free_zed/commit'
|
2019-01-21 13:21:49 +00:00
|
|
|
|
|
|
|
|
|
# Max number of tags displayed in achives
|
|
|
|
|
# Used in template `taglist_sort.html`
|
|
|
|
|
MAX_NB_TAG_IN_LIST = 8
|