Add alt tag to images.

This commit is contained in:
2025-05-19 09:33:12 -07:00
parent 698e2aa680
commit 60f9241fbd
8 changed files with 8 additions and 8 deletions

View File

@ -131,7 +131,7 @@ ls $PHOTOS_DIR/ | sort -r | while read album; do
elif [[ $photo == *".md" || $photo == *".txt" ]]; then
echo -e "\t\t\t\t\t<p>`cat $photo`</p>" >> $subpage
else
echo -e "\t\t\t\t\t<img src='/$photo'/>" >> $subpage
echo -e "\t\t\t\t\t<img src='/$photo'/ alt="">" >> $subpage
fi
# Check if it needs an extra descriptive detail.
echo -en "\t\t\t\t\t<p>$filename" >> $subpage