slider impl (no auto activate)

This commit is contained in:
Yannik Schmidt
2021-05-14 01:40:03 +02:00
parent 7a7365ca4d
commit 1d926c7b51
3 changed files with 128 additions and 0 deletions

View File

@@ -212,6 +212,12 @@ def content():
fullpath = os.path.join(app.config["CONTENT_DIR"], extraConfigDir)
if os.path.isdir(fullpath):
extraConfig = readJsonDir(fullpath)
# picture slider! #
for section in extraConfig:
if section["picture"]:
section.update({"picture-overlay" : section["picture"][:-4] + "_g.jpg"})
markupText = flask.Markup(flask.render_template(app.config[identifier],
extraConfig=extraConfig, commonName=commonName))
else: