shuffle images
This commit is contained in:
4
build.py
4
build.py
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user