Skip to content

Commit

Permalink
Only three row [ good ]
Browse files Browse the repository at this point in the history
  • Loading branch information
harilvfs committed Jan 25, 2025
1 parent 23fe8c0 commit 42d30e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/generate_readme.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ def generate_markdown(images):
rows = []
row = []
for i, img in enumerate(images, start=1):
row.append(f"<img src='{img}' alt='Wallpaper' width='250px' style='margin: 10px;'>") # Adjust width as needed
if i % 4 == 0:
row.append(f"<img src='{img}' alt='Wallpaper' width='250px' style='margin: 10px;'>")
if i % 3 == 0:
rows.append("<div style='display: flex; justify-content: center; gap: 10px;'>\n" + "\n".join(row) + "\n</div>")
row = []
if row:
Expand Down

0 comments on commit 42d30e6

Please sign in to comment.