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
|
PELICANOPTS += -D
|
||||||
endif
|
endif
|
||||||
|
|
||||||
RELATIVE ?= 0
|
RELATIVE ?= 1
|
||||||
ifeq ($(RELATIVE), 1)
|
ifeq ($(RELATIVE), 1)
|
||||||
PELICANOPTS += --relative-urls
|
PELICANOPTS += --relative-urls
|
||||||
endif
|
endif
|
||||||
|
@ -10,7 +10,8 @@ AUTHOR = 'Benjamin Bertrand'
|
|||||||
SITENAME = 'OpyTex'
|
SITENAME = 'OpyTex'
|
||||||
SITETITLE = 'OpyTex'
|
SITETITLE = 'OpyTex'
|
||||||
SITESUBTITLE = "DEV"
|
SITESUBTITLE = "DEV"
|
||||||
SITEURL = 'localhost:8000/enseignements/DEV/'
|
#SITEURL = 'https://0.0.0.0:8000/enseignements/DEV'
|
||||||
|
SITEURL = ''
|
||||||
|
|
||||||
CC_LICENSE_COMMERCIAL = True
|
CC_LICENSE_COMMERCIAL = True
|
||||||
CC_LICENSE = True
|
CC_LICENSE = True
|
||||||
@ -25,7 +26,8 @@ DEFAULT_LANG = 'fr'
|
|||||||
#RELATIVE_URLS = True
|
#RELATIVE_URLS = True
|
||||||
|
|
||||||
# Files places
|
# Files places
|
||||||
IGNORE_FILES = ['venv']
|
IGNORE_FILES = ['venv', '.git', 'tools']
|
||||||
|
# Pages, articles and static
|
||||||
#PAGE_PATHS = ['pages']
|
#PAGE_PATHS = ['pages']
|
||||||
ARTICLE_PATHS = ['.']
|
ARTICLE_PATHS = ['.']
|
||||||
STATIC_PATHS = ['.']
|
STATIC_PATHS = ['.']
|
||||||
@ -48,10 +50,6 @@ ARTICLE_URL = ARTICLE_SAVE_AS = PAGE_URL = PAGE_SAVE_AS = '{path_no_ext}.html'
|
|||||||
|
|
||||||
# Readers
|
# Readers
|
||||||
READERS = {"html": None}
|
READERS = {"html": None}
|
||||||
|
|
||||||
# Themes
|
|
||||||
THEME = "theme"
|
|
||||||
|
|
||||||
# Everythings in french
|
# Everythings in french
|
||||||
JINJA_ENVIRONMENT = {'extensions': ['jinja2.ext.i18n']}
|
JINJA_ENVIRONMENT = {'extensions': ['jinja2.ext.i18n']}
|
||||||
# Default theme language.
|
# Default theme language.
|
||||||
@ -61,6 +59,10 @@ DEFAULT_LANG = "fr"
|
|||||||
OG_LOCALE = "fr"
|
OG_LOCALE = "fr"
|
||||||
LOCALE = ("fr", "fr_FR.utf8")
|
LOCALE = ("fr", "fr_FR.utf8")
|
||||||
|
|
||||||
|
# Themes
|
||||||
|
THEME = "./theme/"
|
||||||
|
USE_GOOGLE_FONTS = False
|
||||||
|
|
||||||
DISPLAY_PAGES_ON_SIDE = False
|
DISPLAY_PAGES_ON_SIDE = False
|
||||||
|
|
||||||
MAIN_MENU = True
|
MAIN_MENU = True
|
||||||
|
Loading…
Reference in New Issue
Block a user