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
2022-08-21 06:40:09 +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-08-21 06:40:09 +00:00
AUTHOR = "Benjamin Bertrand"
SITENAME = "OpyTex"
SITETITLE = "OpyTex"
SITESUBTITLE = "2022-2023"
SITEURL = ""
2019-07-18 10:43:36 +00:00
CC_LICENSE_COMMERCIAL = True
CC_LICENSE = True
2022-08-21 06:40:09 +00:00
PATH = "./content"
2019-07-18 10:43:36 +00:00
2022-08-21 06:40:09 +00:00
TIMEZONE = "Europe/Paris"
2019-07-18 10:43:36 +00:00
2022-08-21 06:40:09 +00:00
DEFAULT_LANG = "fr"
2019-07-18 10:43:36 +00:00
# Uncomment following line if you want document-relative URLs when developing
2022-08-21 06:40:09 +00:00
# RELATIVE_URLS = True
2019-07-18 10:43:36 +00:00
# Files places
2022-08-21 06:40:09 +00:00
IGNORE_FILES = ["venv", ".git", "tools"]
2020-06-24 08:05:20 +00:00
# Pages, articles and static
2022-08-21 06:40:09 +00:00
# PAGE_PATHS = ['pages']
ARTICLE_PATHS = ["."]
STATIC_PATHS = ["."]
INDEX_SAVE_AS = "blog_index.html"
2019-07-18 10:43:36 +00:00
#
USE_FOLDER_AS_CATEGORY = False
# Plugins
PLUGIN_PATHS = ["plugins"]
PLUGINS = [
2022-08-21 06:40:09 +00:00
"i18n_subsites",
2020-06-26 08:25:33 +00:00
"always_modified",
2020-06-26 08:46:26 +00:00
"tag_cloud",
2022-08-21 06:40:09 +00:00
"pdf-img",
]
2020-06-26 08:25:33 +00:00
ALWAYS_MODIFIED = True
# Mirror source structure
2022-08-21 06:40:09 +00:00
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
2022-08-21 06:40:09 +00:00
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
2022-08-21 06:40:09 +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