site_opytex/pelicanconf.py

63 lines
1.3 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
AUTHOR = 'Benjamin Bertrand'
SITENAME = 'Opytex'
SITETITLE = 'Opytex'
SITESUBTITLE = ''
2019-07-18 10:43:36 +00:00
SITEURL = ''
SITEDESCRIPTION = ''
2019-07-18 10:43:36 +00:00
CC_LICENSE_COMMERCIAL = True
CC_LICENSE = True
PATH = 'content'
TIMEZONE = 'Europe/Paris'
DEFAULT_LANG = 'fr'
# theme
THEME = "./theme/"
USE_GOOGLE_FONTS = False
# Pages, articles and static
PAGE_PATHS = ['pages']
#ARTICLE_PATHS = ['pages/Enseignement', 'Blog']
2020-06-21 18:11:30 +00:00
ARTICLE_PATHS = ['blog']
2019-07-18 10:43:36 +00:00
STATIC_PATHS = ['./']
INDEX_SAVE_AS = 'blog_index.html'
# 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
2019-07-18 10:43:36 +00:00
# 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"),
2019-07-18 10:43:36 +00:00
#('blog', '/blog_index.html'),
('À propos', "/pages/a-propos.html"),
#('Archives', "/pages/archives.html"),
2019-07-18 10:43:36 +00:00
]
# Blogroll
2020-06-21 18:11:30 +00:00
LINKS = [
("2019-2020", "/2019-2020/")
]
2019-07-18 10:43:36 +00:00
# Social widget
SOCIAL = ()
2019-07-18 10:43:36 +00:00
DEFAULT_PAGINATION = 10
2019-07-18 10:43:36 +00:00
# Uncomment following line if you want document-relative URLs when developing
#RELATIVE_URLS = True