Feat: Turn relative-urls on
This commit is contained in:
parent
5b475a2f38
commit
ef808a597b
2
Makefile
2
Makefile
@ -26,7 +26,7 @@ ifeq ($(DEBUG), 1)
|
||||
PELICANOPTS += -D
|
||||
endif
|
||||
|
||||
RELATIVE ?= 0
|
||||
RELATIVE ?= 1
|
||||
ifeq ($(RELATIVE), 1)
|
||||
PELICANOPTS += --relative-urls
|
||||
endif
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user