shuffle images

This commit is contained in:
2024-07-15 12:53:37 +01:00
parent 4f92c40d78
commit 52ed87a967
2 changed files with 133 additions and 131 deletions

View File

@@ -1,4 +1,5 @@
import os
import random
import markdown
import re
from jinja2 import Environment, FileSystemLoader
@@ -125,7 +126,8 @@ class Website:
if image_path.startswith("/images/."):
image_path = image_path.replace("/images/.", "/images")
self.all_images.append(image_path)
random.shuffle(self.all_images)
print(self.all_images)
html_output = template.render(
images=self.all_images
)