site_opytex/pelicanconf.py

92 lines
1.7 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-08-07 16:22:40 +00:00
SITESUBTITLE = "2020-2021"
2020-06-24 08:05:20 +00:00
SITEURL = ''
2019-07-18 10:43:36 +00:00
CC_LICENSE_COMMERCIAL = True
CC_LICENSE = True
PATH = './content'
2019-07-18 10:43:36 +00:00
TIMEZONE = 'Europe/Paris'
DEFAULT_LANG = 'fr'
# Uncomment following line if you want document-relative URLs when developing
#RELATIVE_URLS = True
2019-07-18 10:43:36 +00:00
# Files places
2020-06-24 08:05:20 +00:00
IGNORE_FILES = ['venv', '.git', 'tools']
# Pages, articles and static
#PAGE_PATHS = ['pages']
ARTICLE_PATHS = ['.']
STATIC_PATHS = ['.']
2019-07-18 10:43:36 +00:00
INDEX_SAVE_AS = 'blog_index.html'
#
USE_FOLDER_AS_CATEGORY = False
# Plugins
PLUGIN_PATHS = ["plugins"]
PLUGINS = [
'i18n_subsites',
"pelican-page-hierarchy",
2020-06-26 08:25:33 +00:00
"always_modified",
2020-06-26 08:46:26 +00:00
"tag_cloud",
2020-08-25 08:43:02 +00:00
'pdf-img',
]
2020-06-26 08:25:33 +00:00
ALWAYS_MODIFIED = True
# Mirror source structure
PATH_METADATA = '(?P<path_no_ext>.*)\..*'
ARTICLE_URL = ARTICLE_SAVE_AS = PAGE_URL = PAGE_SAVE_AS = '{path_no_ext}.html'
2020-06-25 14:10:24 +00:00
# USE_FOLDER_AS_CATEGORY = True
# DEFAULT_CATEGORY = "Autre"
# Readers
READERS = {"html": None}
# Everythings in french
JINJA_ENVIRONMENT = {'extensions': ['jinja2.ext.i18n']}
# Default theme language.
I18N_TEMPLATES_LANG = "en"
# Your language.
DEFAULT_LANG = "fr"
OG_LOCALE = "fr"
LOCALE = ("fr", "fr_FR.utf8")
2019-07-18 10:43:36 +00:00
2020-06-24 08:05:20 +00:00
# Themes
THEME = "./theme/"
USE_GOOGLE_FONTS = False
2019-07-18 10:43:36 +00:00
2020-06-25 14:10:24 +00:00
# Main menu on the top
MAIN_MENU = True
DISPLAY_CATEGORIES_ON_MENU = False
2020-06-25 14:10:24 +00:00
# Sidebar
DISPLAY_PAGES_ON_SIDE = False
TOCTREE = True
2020-06-26 08:46:26 +00:00
TAG_CLOUD = True
2019-07-18 10:43:36 +00:00
#SITELOGO = ""
LINKS = ()
DEFAULT_PAGINATION = 10
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