site_opytex/pelicanconf.py

94 lines
2.0 KiB
Python
Raw Normal View History

2019-07-18 10:43:36 +00:00
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
import os
2020-06-23 08:05:25 +00:00
import sys
sys.path.append(os.curdir)
from globalconf import *
2019-07-18 10:43:36 +00:00
AUTHOR = 'Benjamin Bertrand'
SITENAME = 'OpyTex'
SITETITLE = 'OpyTex'
2020-06-23 08:59:58 +00:00
SITESUBTITLE = "2016-2017"
2019-07-18 10:43:36 +00:00
SITEURL = ''
CC_LICENSE_COMMERCIAL = True
CC_LICENSE = True
PATH = './content'
2019-07-18 10:43:36 +00:00
TIMEZONE = 'Europe/Paris'
DEFAULT_LANG = 'fr'
# theme
THEME = "./theme/"
USE_GOOGLE_FONTS = False
IGNORE_FILES = ['venv', '.git', 'tools']
2019-07-18 10:43:36 +00:00
# Pages, articles and static
PAGE_PATHS = ['pages']
#ARTICLE_PATHS = ['pages/Enseignement', 'Blog']
ARTICLE_PATHS = ['.']
STATIC_PATHS = ['.']
2019-07-18 10:43:36 +00:00
INDEX_SAVE_AS = 'blog_index.html'
# Mirror source structure
PATH_METADATA = '(?P<path_no_ext>.*)\..*'
ARTICLE_URL = ARTICLE_SAVE_AS = PAGE_URL = PAGE_SAVE_AS = '{path_no_ext}.html'
2019-07-18 10:43:36 +00:00
# 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 = (
#('2019/2020', "/Enseignements/2019-2020/"),
#('2018/2019', "/Enseignements/2018-2019/"),
#('2017/2018', "/Enseignements/2017-2018/"),
#('2016/2017', "/Enseignements/2016-2017/"),
#('2015/2016', "/Enseignements/2015-2016/"),
2019-07-18 10:43:36 +00:00
)
# Social widget
#SOCIAL = (('You can add links in your config file', '#'),
# )
DEFAULT_PAGINATION = 20
# Date
SHOW_DATE_MODIFIED = True
ARTICLE_ORDER_BY = "modified"
DISPLAY_ARTICLE_INFO_ON_INDEX = True
# Uncomment following line if you want document-relative URLs when developing
RELATIVE_URLS = True
2019-07-18 10:43:36 +00:00
BOOTSTRAP_THEME = "flatly"
PLUGIN_PATHS = ['./plugins', './pelican-plugins']
PLUGINS = [#'hierarchy',
2019-07-18 10:43:36 +00:00
'tag_cloud',
"list_files",
"render_math",
"always_modified",
2020-06-23 07:45:42 +00:00
"pdf-img",
2019-07-18 10:43:36 +00:00
]
READERS = {"html": None}
# hierarchy plugin config
# ARTICLE_URL = 'Enseignements/{slug}/'
# ARTICLE_SAVE_AS = 'Enseignements/{slug}/index.html'
# #SLUGIFY_SOURCE = 'basename'
# ARTICLE_NAVIGATION = True
2019-07-18 10:43:36 +00:00
TAGS_URL = "tags.html"
DISPLAY_TAGS_INLINE = True
DISPLAY_CATEGORIES_ON_SIDEBAR = True