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>
<h1>Wallpapers for gruvbox</h1>" > ./index.html
n=1
for i in ./wallpapers/*
color=1
for subdir in ./wallpapers/*
do
subdir=$i
echo "<h2 id=s"$n">" >> ./index.html
echo "<h2 id=s"$color">" >> ./index.html
echo "${subdir##*/}" | tr a-z A-Z >> ./index.html
echo "</h2>" >> ./index.html
echo "<div id=c>" >> ./index.html
for j in ${subdir}/*
for wallpaper in ${subdir}/*
do
echo " <a target=\"_blank\" href=\"$j\">
<img loading=\"lazy\" src=\"$j\" alt="$j" width=\"200\"></a>" >> ./index.html
echo " <a target=\"_blank\" href=\"$wallpaper\">
<img loading=\"lazy\" src=\"$wallpaper\" alt="$wallpaper" width=\"200\"></a>" >> ./index.html
done
echo "</div>" >> ./index.html
n=$((n+1))
if [ "$n" -eq 8 ]; then
n=1
color=$((color+1))
if [ "$color" -eq 8 ]; then
color=1
fi
done
+1
View File
@@ -65,6 +65,7 @@ h2 {
/* } */
#c {
text-align: center;
padding: 1em;
background-color: #665c54;
}