site_opytex/pelicanconf.py

79 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
2020-06-23 08:05:25 +00:00
import os
import sys
2022-05-26 11:54:02 +00:00
2020-06-23 08:05:25 +00:00
sys.path.append(os.curdir)
from globalconf import *
2019-07-18 10:43:36 +00:00
2022-05-26 11:54:02 +00:00
AUTHOR = "Benjamin Bertrand"
SITENAME = "Opytex"
SITETITLE = "Opytex"
SITESUBTITLE = ""
SITEURL = ""
SITEDESCRIPTION = ""
2019-07-18 10:43:36 +00:00
CC_LICENSE_COMMERCIAL = True
CC_LICENSE = True
2022-05-26 11:54:02 +00:00
PATH = "./content"
2019-07-18 10:43:36 +00:00
2022-05-26 11:54:02 +00:00
TIMEZONE = "Europe/Paris"
2019-07-18 10:43:36 +00:00
2022-05-26 11:54:02 +00:00
DEFAULT_LANG = "fr"
2019-07-18 10:43:36 +00:00
# theme
THEME = "./theme/"
2020-06-26 11:55:28 +00:00
# Plugins
PLUGIN_PATHS = ["plugins"]
PLUGINS = [
2022-05-26 11:54:02 +00:00
"i18n_subsites",
"pdf-img",
2020-06-26 11:55:28 +00:00
]
# Readers
READERS = {"html": None}
# Everythings in french
2022-05-26 11:54:02 +00:00
JINJA_ENVIRONMENT = {"extensions": ["jinja2.ext.i18n"]}
2020-06-26 11:55:28 +00:00
# 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
USE_GOOGLE_FONTS = False
# Pages, articles and static
2022-05-26 11:54:02 +00:00
PAGE_PATHS = ["pages"]
# ARTICLE_PATHS = ['pages/Enseignement', 'Blog']
ARTICLE_PATHS = ["blog"]
STATIC_PATHS = ["blog", "."]
INDEX_SAVE_AS = "blog_index.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
2019-07-18 10:43:36 +00:00
# Blogroll
2022-05-26 11:54:02 +00:00
LINKS = [
("2015-2016", "/enseignements/2015-2016/"),
("2016-2017", "/enseignements/2016-2017/"),
("2017-2018", "/enseignements/2017-2018/"),
("2018-2019", "/enseignements/2018-2019/"),
("2019-2020", "/enseignements/2019-2020/"),
("2020-2021", "/enseignements/2020-2021/"),
("2021-2022", "/enseignements/2021-2022/"),
2022-08-25 13:53:13 +00:00
("2022-2023", "/enseignements/2022-2023/"),
2022-05-26 11:54:02 +00:00
]
2019-07-18 10:43:36 +00:00
# Social widget
SOCIAL = ()
2019-07-18 10:43:36 +00:00
DEFAULT_PAGINATION = 10
2019-07-18 10:43:36 +00:00
# Uncomment following line if you want document-relative URLs when developing
2022-05-26 11:54:02 +00:00
# RELATIVE_URLS = True