Feat: split with globalconf

This commit is contained in:
Bertrand Benjamin 2020-06-23 10:05:25 +02:00
parent 39241ee741
commit 74c085c442
2 changed files with 21 additions and 13 deletions

17
globalconf.py Normal file
View File

@ -0,0 +1,17 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
# Menu
MAIN_MENU = True
DISPLAY_PAGES_ON_MENU = False
DISPLAY_CATEGORIES_ON_MENU = False
MENUITEMS = [
#("Dernières modifications", SITEURL+"blog_index.html"),
("Contenus de cours", "/pages/tout-sur-mes-cours.html"),
('blog', '/blog_index.html'),
('Opytex', "/opytex/"),
("pyMath", "/pymath/"),
('À propos', "/pages/a-propos.html"),
]

View File

@ -1,6 +1,10 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
import os
import sys
sys.path.append(os.curdir)
from globalconf import *
AUTHOR = 'Benjamin Bertrand'
SITENAME = 'Opytex'
@ -36,19 +40,6 @@ TRANSLATION_FEED_ATOM = None
AUTHOR_FEED_ATOM = None
AUTHOR_FEED_RSS = None
# Menu
MAIN_MENU = True
DISPLAY_PAGES_ON_MENU = False
DISPLAY_CATEGORIES_ON_MENU = False
MENUITEMS = [
('Opytex', "/opytex/"),
("pyMath", "/pymath/"),
("Contenus de cours", "/pages/mes-cours.html"),
#('blog', '/blog_index.html'),
('À propos', "/pages/a-propos.html"),
#('Archives', "/pages/archives.html"),
]
# Blogroll
LINKS = [
("2019-2020", "/2019-2020/")