Feat: Turn relative-urls on

This commit is contained in:
Bertrand Benjamin 2020-06-24 10:05:20 +02:00
parent 5b475a2f38
commit ef808a597b
2 changed files with 9 additions and 7 deletions

View File

@ -26,7 +26,7 @@ ifeq ($(DEBUG), 1)
PELICANOPTS += -D
endif
RELATIVE ?= 0
RELATIVE ?= 1
ifeq ($(RELATIVE), 1)
PELICANOPTS += --relative-urls
endif

View File

@ -10,7 +10,8 @@ AUTHOR = 'Benjamin Bertrand'
SITENAME = 'OpyTex'
SITETITLE = 'OpyTex'
SITESUBTITLE = "DEV"
SITEURL = 'localhost:8000/enseignements/DEV/'
#SITEURL = 'https://0.0.0.0:8000/enseignements/DEV'
SITEURL = ''
CC_LICENSE_COMMERCIAL = True
CC_LICENSE = True
@ -25,7 +26,8 @@ DEFAULT_LANG = 'fr'
#RELATIVE_URLS = True
# Files places
IGNORE_FILES = ['venv']
IGNORE_FILES = ['venv', '.git', 'tools']
# Pages, articles and static
#PAGE_PATHS = ['pages']
ARTICLE_PATHS = ['.']
STATIC_PATHS = ['.']
@ -48,10 +50,6 @@ ARTICLE_URL = ARTICLE_SAVE_AS = PAGE_URL = PAGE_SAVE_AS = '{path_no_ext}.html'
# Readers
READERS = {"html": None}
# Themes
THEME = "theme"
# Everythings in french
JINJA_ENVIRONMENT = {'extensions': ['jinja2.ext.i18n']}
# Default theme language.
@ -61,6 +59,10 @@ DEFAULT_LANG = "fr"
OG_LOCALE = "fr"
LOCALE = ("fr", "fr_FR.utf8")
# Themes
THEME = "./theme/"
USE_GOOGLE_FONTS = False
DISPLAY_PAGES_ON_SIDE = False
MAIN_MENU = True