diff --git a/build.sh b/build.sh index 69b36ab..cf1d6c3 100755 --- a/build.sh +++ b/build.sh @@ -23,11 +23,57 @@ do echo "" >> ./index.html echo "
" >> ./index.html - + + count=1; for wallpaper in ${subdir}/* do - echo " - $wallpaper" >> ./index.html + if [ "$count" -lt 11 ]; then #limit the amount of images per section in index + echo " + $wallpaper" >> ./index.html + count=$((count+1)) + else #if the limit is exceeded then create a new html with all the images of the section + # TODO: make this part cleaner, this is really ugly. + subhtml="${subdir##*/}.html" + nimgs=$(ls "${subdir}" | wc -l) + echo " +
show all ${nimgs} ${subdir##*/} wallpapers
" >> ./index.html + touch "${subhtml}" + + echo " + + + + + + Gruvbox wallpapers + + + +

Wallpapers for gruvbox

" > "${subhtml}" + + echo "

" >> "${subhtml}" + echo "${subdir##*/}" | tr a-z A-Z >> "${subhtml}" + echo "

" >> "${subhtml}" + + echo "
" >> "${subhtml}" + + for wallpaper2 in ${subdir}/* + do + echo " + $wallpaper2" >> "${subhtml}" + done + + echo "
" >> "${subhtml}" + + echo "

Contributions here.

+

This images are from random sites or contributions so I don't have a way to know who are their original artist.

+

I want to keep this site as simple as possible, but if you are the creator of any of these images and you want acknowledgment I will happily add a section with your name. Just open an issue here.

+

The same goes, if you want me to remove your art.

+ +" >> "${subhtml}" + break + fi + done echo "
" >> ./index.html diff --git a/style.css b/style.css index b89de88..c7d8b30 100644 --- a/style.css +++ b/style.css @@ -20,6 +20,19 @@ h2 { text-decoration: none; } +a { + color: #ebdbb2; + /* background-color: #ebdbb2; */ + /* color: #282828; */ +} + +.showmore{ + text-align: center; + background-color: #ebdbb2; + color: #282828; + /* border: 2px solid #ebdbb2; */ +} + #s1 { background-color: #d65d0e; }