From f2adf72aa0435a769dc6adb8674cd9c79b880e54 Mon Sep 17 00:00:00 2001 From: Bertrand Benjamin Date: Sun, 21 Aug 2022 08:40:09 +0200 Subject: [PATCH] Feat: start 2022-2023 from 2021-2022 --- pelicanconf.py | 41 +++++++++++++++++++++-------------------- publishconf.py | 2 +- 2 files changed, 22 insertions(+), 21 deletions(-) diff --git a/pelicanconf.py b/pelicanconf.py index a9cd5a2..b501f7a 100644 --- a/pelicanconf.py +++ b/pelicanconf.py @@ -3,34 +3,35 @@ from __future__ import unicode_literals import os import sys + sys.path.append(os.curdir) from globalconf import * -AUTHOR = 'Benjamin Bertrand' -SITENAME = 'OpyTex' -SITETITLE = 'OpyTex' -SITESUBTITLE = "2021-2022" -SITEURL = '' +AUTHOR = "Benjamin Bertrand" +SITENAME = "OpyTex" +SITETITLE = "OpyTex" +SITESUBTITLE = "2022-2023" +SITEURL = "" CC_LICENSE_COMMERCIAL = 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 -#RELATIVE_URLS = True +# RELATIVE_URLS = True # Files places -IGNORE_FILES = ['venv', '.git', 'tools'] +IGNORE_FILES = ["venv", ".git", "tools"] # Pages, articles and static -#PAGE_PATHS = ['pages'] -ARTICLE_PATHS = ['.'] -STATIC_PATHS = ['.'] -INDEX_SAVE_AS = 'blog_index.html' +# PAGE_PATHS = ['pages'] +ARTICLE_PATHS = ["."] +STATIC_PATHS = ["."] +INDEX_SAVE_AS = "blog_index.html" # USE_FOLDER_AS_CATEGORY = False @@ -38,17 +39,17 @@ USE_FOLDER_AS_CATEGORY = False # Plugins PLUGIN_PATHS = ["plugins"] PLUGINS = [ - 'i18n_subsites', + "i18n_subsites", "always_modified", "tag_cloud", - 'pdf-img', + "pdf-img", ] ALWAYS_MODIFIED = True # Mirror source structure -PATH_METADATA = '(?P.*)\..*' -ARTICLE_URL = ARTICLE_SAVE_AS = PAGE_URL = PAGE_SAVE_AS = '{path_no_ext}.html' +PATH_METADATA = "(?P.*)\..*" +ARTICLE_URL = ARTICLE_SAVE_AS = PAGE_URL = PAGE_SAVE_AS = "{path_no_ext}.html" # USE_FOLDER_AS_CATEGORY = True # DEFAULT_CATEGORY = "Autre" @@ -56,7 +57,7 @@ ARTICLE_URL = ARTICLE_SAVE_AS = PAGE_URL = PAGE_SAVE_AS = '{path_no_ext}.html' # Readers READERS = {"html": None} # Everythings in french -JINJA_ENVIRONMENT = {'extensions': ['jinja2.ext.i18n']} +JINJA_ENVIRONMENT = {"extensions": ["jinja2.ext.i18n"]} # Default theme language. I18N_TEMPLATES_LANG = "en" # Your language. @@ -78,7 +79,7 @@ DISPLAY_PAGES_ON_SIDE = False TOCTREE = True TAG_CLOUD = True -#SITELOGO = "" +# SITELOGO = "" LINKS = () DEFAULT_PAGINATION = 10 diff --git a/publishconf.py b/publishconf.py index 9761cb7..1640056 100644 --- a/publishconf.py +++ b/publishconf.py @@ -11,7 +11,7 @@ sys.path.append(os.curdir) from pelicanconf import * # 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 FEED_ALL_ATOM = 'feeds/all.atom.xml'