More improvements

This commit is contained in:
Angel Jumbo
2022-11-21 22:43:38 -05:00
parent f82893ec21
commit f69569b897
2 changed files with 11 additions and 12 deletions
+10 -12
View File
@@ -13,30 +13,28 @@ echo "<!DOCTYPE html>
<body> <body>
<h1>Wallpapers for gruvbox</h1>" > ./index.html <h1>Wallpapers for gruvbox</h1>" > ./index.html
n=1
for i in ./wallpapers/* color=1
for subdir in ./wallpapers/*
do do
subdir=$i
echo "<h2 id=s"$color">" >> ./index.html
echo "<h2 id=s"$n">" >> ./index.html
echo "${subdir##*/}" | tr a-z A-Z >> ./index.html echo "${subdir##*/}" | tr a-z A-Z >> ./index.html
echo "</h2>" >> ./index.html echo "</h2>" >> ./index.html
echo "<div id=c>" >> ./index.html echo "<div id=c>" >> ./index.html
for j in ${subdir}/* for wallpaper in ${subdir}/*
do do
echo " <a target=\"_blank\" href=\"$j\"> echo " <a target=\"_blank\" href=\"$wallpaper\">
<img loading=\"lazy\" src=\"$j\" alt="$j" width=\"200\"></a>" >> ./index.html <img loading=\"lazy\" src=\"$wallpaper\" alt="$wallpaper" width=\"200\"></a>" >> ./index.html
done done
echo "</div>" >> ./index.html echo "</div>" >> ./index.html
n=$((n+1)) color=$((color+1))
if [ "$n" -eq 8 ]; then if [ "$color" -eq 8 ]; then
n=1 color=1
fi fi
done done
+1
View File
@@ -65,6 +65,7 @@ h2 {
/* } */ /* } */
#c { #c {
text-align: center;
padding: 1em; padding: 1em;
background-color: #665c54; background-color: #665c54;
} }