Update Checker Refactor, New Menu Style, Lazy Load Photos Pages #17

Merged
me merged 22 commits from prod into main 2025-12-01 10:02:04 -07:00
Showing only changes of commit c601559059 - Show all commits

View File

@@ -153,7 +153,7 @@ function build_album_pages {
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' loading='lazy' alt=''>" >> $subpage
echo -e "\t\t\t\t\t<img loading='lazy' alt='' src='/$photo'>" >> $subpage
fi
# Check if it needs an extra descriptive detail.
echo -en "\t\t\t\t\t<p>$filename" >> $subpage
@@ -229,7 +229,7 @@ function build_all_page {
dir_name="${dir_name//_/ }"
dir_name="${dir_name//-/ }"
media="<img src='$media_uri' alt='' loading='lazy' style='width:100%'>"
media="<img style='width:100%' loading='lazy' alt='' src='$media_uri'>"
# Determine how to show the file.
if [[ $media_uri == *".mp4" ]]; then