mirror of
https://github.com/AngelJumbo/gruvbox-wallpapers.git
synced 2026-10-19 15:46:17 +00:00
More improvements
This commit is contained in:
+10
-12
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user