#!/bin/bash # Directory where images are stored (Quote it!) IMAGE_DIR="../../assets/pics/gallery/centerpiece" # Output file (Quote it!) OUTPUT_FILE="./index.html" # Or specify the full path: /path/to/your/file/index.html # Ensure the images directory exists if [ ! -d "$IMAGE_DIR" ]; then echo "Error: Directory '$IMAGE_DIR' not found!" exit 1 fi # Start writing the HTML file (Redirect to the quoted variable) cat > "$OUTPUT_FILE" < Beach Party Balloons

Centerpieces

EOL echo "Gallery generated with Bulma modals! Open $OUTPUT_FILE in your browser."