[enh] allow to set if a gallery is listed on home
This commit is contained in:
parent
005234ad2a
commit
0b157c2c2f
@ -85,13 +85,14 @@ def main():
|
|||||||
gallery_sub_title = gallery_settings.get("sub_title", "")
|
gallery_sub_title = gallery_settings.get("sub_title", "")
|
||||||
gallery_date = gallery_settings["date"] if "date" in gallery_settings else ""
|
gallery_date = gallery_settings["date"] if "date" in gallery_settings else ""
|
||||||
|
|
||||||
front_page_galleries_cover.append({
|
if gallery_settings.get("public", True):
|
||||||
"title": gallery_title,
|
front_page_galleries_cover.append({
|
||||||
"link": gallery,
|
"title": gallery_title,
|
||||||
"sub_title": gallery_sub_title,
|
"link": gallery,
|
||||||
"date": gallery_date,
|
"sub_title": gallery_sub_title,
|
||||||
"cover": cover_image_path,
|
"date": gallery_date,
|
||||||
})
|
"cover": cover_image_path,
|
||||||
|
})
|
||||||
|
|
||||||
if not os.path.exists(os.path.join("build", gallery)):
|
if not os.path.exists(os.path.join("build", gallery)):
|
||||||
os.makedirs(os.path.join("build", gallery))
|
os.makedirs(os.path.join("build", gallery))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user