Feat: start 2022-2023 from 2021-2022

This commit is contained in:
Bertrand Benjamin 2022-08-21 08:40:09 +02:00
parent 0653ac2bf8
commit f2adf72aa0
2 changed files with 22 additions and 21 deletions

View File

@ -3,34 +3,35 @@
from __future__ import unicode_literals from __future__ import unicode_literals
import os import os
import sys import sys
sys.path.append(os.curdir) sys.path.append(os.curdir)
from globalconf import * from globalconf import *
AUTHOR = 'Benjamin Bertrand' AUTHOR = "Benjamin Bertrand"
SITENAME = 'OpyTex' SITENAME = "OpyTex"
SITETITLE = 'OpyTex' SITETITLE = "OpyTex"
SITESUBTITLE = "2021-2022" SITESUBTITLE = "2022-2023"
SITEURL = '' SITEURL = ""
CC_LICENSE_COMMERCIAL = True CC_LICENSE_COMMERCIAL = True
CC_LICENSE = True CC_LICENSE = True
PATH = './content' PATH = "./content"
TIMEZONE = 'Europe/Paris' TIMEZONE = "Europe/Paris"
DEFAULT_LANG = 'fr' DEFAULT_LANG = "fr"
# Uncomment following line if you want document-relative URLs when developing # Uncomment following line if you want document-relative URLs when developing
#RELATIVE_URLS = True # RELATIVE_URLS = True
# Files places # Files places
IGNORE_FILES = ['venv', '.git', 'tools'] IGNORE_FILES = ["venv", ".git", "tools"]
# Pages, articles and static # Pages, articles and static
#PAGE_PATHS = ['pages'] # PAGE_PATHS = ['pages']
ARTICLE_PATHS = ['.'] ARTICLE_PATHS = ["."]
STATIC_PATHS = ['.'] STATIC_PATHS = ["."]
INDEX_SAVE_AS = 'blog_index.html' INDEX_SAVE_AS = "blog_index.html"
# #
USE_FOLDER_AS_CATEGORY = False USE_FOLDER_AS_CATEGORY = False
@ -38,17 +39,17 @@ USE_FOLDER_AS_CATEGORY = False
# Plugins # Plugins
PLUGIN_PATHS = ["plugins"] PLUGIN_PATHS = ["plugins"]
PLUGINS = [ PLUGINS = [
'i18n_subsites', "i18n_subsites",
"always_modified", "always_modified",
"tag_cloud", "tag_cloud",
'pdf-img', "pdf-img",
] ]
ALWAYS_MODIFIED = True ALWAYS_MODIFIED = True
# Mirror source structure # Mirror source structure
PATH_METADATA = '(?P<path_no_ext>.*)\..*' PATH_METADATA = "(?P<path_no_ext>.*)\..*"
ARTICLE_URL = ARTICLE_SAVE_AS = PAGE_URL = PAGE_SAVE_AS = '{path_no_ext}.html' ARTICLE_URL = ARTICLE_SAVE_AS = PAGE_URL = PAGE_SAVE_AS = "{path_no_ext}.html"
# USE_FOLDER_AS_CATEGORY = True # USE_FOLDER_AS_CATEGORY = True
# DEFAULT_CATEGORY = "Autre" # DEFAULT_CATEGORY = "Autre"
@ -56,7 +57,7 @@ ARTICLE_URL = ARTICLE_SAVE_AS = PAGE_URL = PAGE_SAVE_AS = '{path_no_ext}.html'
# Readers # Readers
READERS = {"html": None} READERS = {"html": None}
# Everythings in french # Everythings in french
JINJA_ENVIRONMENT = {'extensions': ['jinja2.ext.i18n']} JINJA_ENVIRONMENT = {"extensions": ["jinja2.ext.i18n"]}
# Default theme language. # Default theme language.
I18N_TEMPLATES_LANG = "en" I18N_TEMPLATES_LANG = "en"
# Your language. # Your language.
@ -78,7 +79,7 @@ DISPLAY_PAGES_ON_SIDE = False
TOCTREE = True TOCTREE = True
TAG_CLOUD = True TAG_CLOUD = True
#SITELOGO = "" # SITELOGO = ""
LINKS = () LINKS = ()
DEFAULT_PAGINATION = 10 DEFAULT_PAGINATION = 10

View File

@ -11,7 +11,7 @@ sys.path.append(os.curdir)
from pelicanconf import * from pelicanconf import *
# If your site is available via HTTPS, make sure SITEURL begins with https:// # If your site is available via HTTPS, make sure SITEURL begins with https://
SITEURL = 'https://opytex.org/enseignements/2021-2022/' SITEURL = 'https://opytex.org/enseignements/2022-2023/'
RELATIVE_URLS = False RELATIVE_URLS = False
FEED_ALL_ATOM = 'feeds/all.atom.xml' FEED_ALL_ATOM = 'feeds/all.atom.xml'