diff --git a/genPage.sh b/genPage.sh index 17694f2..69b36ab 100755 --- a/genPage.sh +++ b/genPage.sh @@ -13,30 +13,28 @@ echo "

Wallpapers for gruvbox

" > ./index.html -n=1 -for i in ./wallpapers/* + +color=1 +for subdir in ./wallpapers/* do - subdir=$i - - - echo "

" >> ./index.html + echo "

" >> ./index.html echo "${subdir##*/}" | tr a-z A-Z >> ./index.html echo "

" >> ./index.html echo "
" >> ./index.html - for j in ${subdir}/* + for wallpaper in ${subdir}/* do - echo " - $j" >> ./index.html + echo " + $wallpaper" >> ./index.html done echo "
" >> ./index.html - n=$((n+1)) - if [ "$n" -eq 8 ]; then - n=1 + color=$((color+1)) + if [ "$color" -eq 8 ]; then + color=1 fi done diff --git a/style.css b/style.css index 9fe568d..5984007 100644 --- a/style.css +++ b/style.css @@ -65,6 +65,7 @@ h2 { /* } */ #c { + text-align: center; padding: 1em; background-color: #665c54; }