Feat: split with globalconf
This commit is contained in:
parent
adab4cdd33
commit
5239c34f50
17
globalconf.py
Normal file
17
globalconf.py
Normal 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"),
|
||||
]
|
||||
|
@ -2,6 +2,9 @@
|
||||
# -*- 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'
|
||||
@ -35,21 +38,6 @@ INDEX_SAVE_AS = 'blog_index.html'
|
||||
PATH_METADATA = '(?P<path_no_ext>.*)\..*'
|
||||
ARTICLE_URL = ARTICLE_SAVE_AS = PAGE_URL = PAGE_SAVE_AS = '{path_no_ext}.html'
|
||||
|
||||
|
||||
# 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"),
|
||||
]
|
||||
|
||||
|
||||
# Feed generation is usually not desired when developing
|
||||
FEED_ALL_ATOM = None
|
||||
CATEGORY_FEED_ATOM = None
|
||||
|
Loading…
Reference in New Issue
Block a user