From fe04ea57cfc7adb5292cbbc88cb246647e82d848 Mon Sep 17 00:00:00 2001 From: d3m1g0d Date: Wed, 10 Oct 2018 20:14:31 +0200 Subject: [PATCH] added gallery generation script --- day1/gallerygen.sh | 17 ++++++++++++++ day1/imgindex.html | 49 +++++++++++++++++++++++++++++++++++++++ day1/indexhead.html | 43 ++++++++++++++++++++++++++++++++++ day1/indextail.html | 4 ++++ day2/gallerygen.sh | 17 ++++++++++++++ day2/indexhead.html | 43 ++++++++++++++++++++++++++++++++++ day2/indextail.html | 4 ++++ day3/gallerygen.sh | 17 ++++++++++++++ day3/indexhead.html | 43 ++++++++++++++++++++++++++++++++++ day3/indextail.html | 4 ++++ day4/gallerygen.sh | 17 ++++++++++++++ day4/indexhead.html | 43 ++++++++++++++++++++++++++++++++++ day4/indextail.html | 4 ++++ day5/gallerygen.sh | 17 ++++++++++++++ day5/indexhead.html | 43 ++++++++++++++++++++++++++++++++++ day5/indextail.html | 4 ++++ gallery.html | 44 ++++++++++++++++++----------------- gallerygen/gallerygen.sh | 7 ++++-- gallerygen/indexhead.html | 43 ++++++++++++++++++++++++++++++++++ gallerygen/indextail.html | 4 ++++ 20 files changed, 444 insertions(+), 23 deletions(-) create mode 100755 day1/gallerygen.sh create mode 100644 day1/imgindex.html create mode 100644 day1/indexhead.html create mode 100644 day1/indextail.html create mode 100755 day2/gallerygen.sh create mode 100644 day2/indexhead.html create mode 100644 day2/indextail.html create mode 100755 day3/gallerygen.sh create mode 100644 day3/indexhead.html create mode 100644 day3/indextail.html create mode 100755 day4/gallerygen.sh create mode 100644 day4/indexhead.html create mode 100644 day4/indextail.html create mode 100755 day5/gallerygen.sh create mode 100644 day5/indexhead.html create mode 100644 day5/indextail.html create mode 100644 gallerygen/indexhead.html create mode 100644 gallerygen/indextail.html diff --git a/day1/gallerygen.sh b/day1/gallerygen.sh new file mode 100755 index 0000000..df95362 --- /dev/null +++ b/day1/gallerygen.sh @@ -0,0 +1,17 @@ +#!/bin/sh + +if [ -e imgindex.html ]; then +rm imgindex.html +fi + +cat indexhead.html > imgindex.html + +for i in *.png; do +echo "
" >> imgindex.html +done + +for i in *.jpg; do +echo "
" >> imgindex.html +done + +cat indextail.html >> imgindex.html diff --git a/day1/imgindex.html b/day1/imgindex.html new file mode 100644 index 0000000..c7a219c --- /dev/null +++ b/day1/imgindex.html @@ -0,0 +1,49 @@ + + + + + + + + + + + + + + + + + + + + Planica 2018 - Galerija + + + + +
+
+
+
+ + + \ No newline at end of file diff --git a/day1/indexhead.html b/day1/indexhead.html new file mode 100644 index 0000000..6368303 --- /dev/null +++ b/day1/indexhead.html @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + + + + + + + Planica 2018 - Galerija + + + + +
diff --git a/day1/indextail.html b/day1/indextail.html new file mode 100644 index 0000000..5ac34a5 --- /dev/null +++ b/day1/indextail.html @@ -0,0 +1,4 @@ +
+ + + \ No newline at end of file diff --git a/day2/gallerygen.sh b/day2/gallerygen.sh new file mode 100755 index 0000000..df95362 --- /dev/null +++ b/day2/gallerygen.sh @@ -0,0 +1,17 @@ +#!/bin/sh + +if [ -e imgindex.html ]; then +rm imgindex.html +fi + +cat indexhead.html > imgindex.html + +for i in *.png; do +echo "
" >> imgindex.html +done + +for i in *.jpg; do +echo "
" >> imgindex.html +done + +cat indextail.html >> imgindex.html diff --git a/day2/indexhead.html b/day2/indexhead.html new file mode 100644 index 0000000..6368303 --- /dev/null +++ b/day2/indexhead.html @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + + + + + + + Planica 2018 - Galerija + + + + +
diff --git a/day2/indextail.html b/day2/indextail.html new file mode 100644 index 0000000..5ac34a5 --- /dev/null +++ b/day2/indextail.html @@ -0,0 +1,4 @@ +
+ + + \ No newline at end of file diff --git a/day3/gallerygen.sh b/day3/gallerygen.sh new file mode 100755 index 0000000..df95362 --- /dev/null +++ b/day3/gallerygen.sh @@ -0,0 +1,17 @@ +#!/bin/sh + +if [ -e imgindex.html ]; then +rm imgindex.html +fi + +cat indexhead.html > imgindex.html + +for i in *.png; do +echo "
" >> imgindex.html +done + +for i in *.jpg; do +echo "
" >> imgindex.html +done + +cat indextail.html >> imgindex.html diff --git a/day3/indexhead.html b/day3/indexhead.html new file mode 100644 index 0000000..6368303 --- /dev/null +++ b/day3/indexhead.html @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + + + + + + + Planica 2018 - Galerija + + + + +
diff --git a/day3/indextail.html b/day3/indextail.html new file mode 100644 index 0000000..5ac34a5 --- /dev/null +++ b/day3/indextail.html @@ -0,0 +1,4 @@ +
+ + + \ No newline at end of file diff --git a/day4/gallerygen.sh b/day4/gallerygen.sh new file mode 100755 index 0000000..df95362 --- /dev/null +++ b/day4/gallerygen.sh @@ -0,0 +1,17 @@ +#!/bin/sh + +if [ -e imgindex.html ]; then +rm imgindex.html +fi + +cat indexhead.html > imgindex.html + +for i in *.png; do +echo "
" >> imgindex.html +done + +for i in *.jpg; do +echo "
" >> imgindex.html +done + +cat indextail.html >> imgindex.html diff --git a/day4/indexhead.html b/day4/indexhead.html new file mode 100644 index 0000000..6368303 --- /dev/null +++ b/day4/indexhead.html @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + + + + + + + Planica 2018 - Galerija + + + + +
diff --git a/day4/indextail.html b/day4/indextail.html new file mode 100644 index 0000000..5ac34a5 --- /dev/null +++ b/day4/indextail.html @@ -0,0 +1,4 @@ +
+ + + \ No newline at end of file diff --git a/day5/gallerygen.sh b/day5/gallerygen.sh new file mode 100755 index 0000000..df95362 --- /dev/null +++ b/day5/gallerygen.sh @@ -0,0 +1,17 @@ +#!/bin/sh + +if [ -e imgindex.html ]; then +rm imgindex.html +fi + +cat indexhead.html > imgindex.html + +for i in *.png; do +echo "
" >> imgindex.html +done + +for i in *.jpg; do +echo "
" >> imgindex.html +done + +cat indextail.html >> imgindex.html diff --git a/day5/indexhead.html b/day5/indexhead.html new file mode 100644 index 0000000..6368303 --- /dev/null +++ b/day5/indexhead.html @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + + + + + + + Planica 2018 - Galerija + + + + +
diff --git a/day5/indextail.html b/day5/indextail.html new file mode 100644 index 0000000..5ac34a5 --- /dev/null +++ b/day5/indextail.html @@ -0,0 +1,4 @@ +
+ + + \ No newline at end of file diff --git a/gallery.html b/gallery.html index 2a2578e..7cac6a5 100644 --- a/gallery.html +++ b/gallery.html @@ -21,28 +21,30 @@ -
- + Projektni teden Planica 2018 + +
+ - + + + 1. dan + 2. dan + 3. dan + 4. dan + 5. dan + \ No newline at end of file diff --git a/gallerygen/gallerygen.sh b/gallerygen/gallerygen.sh index bd85d12..df95362 100755 --- a/gallerygen/gallerygen.sh +++ b/gallerygen/gallerygen.sh @@ -4,11 +4,14 @@ if [ -e imgindex.html ]; then rm imgindex.html fi +cat indexhead.html > imgindex.html + for i in *.png; do -echo "" >> imgindex.html +echo "
" >> imgindex.html done for i in *.jpg; do -echo "" >> imgindex.html +echo "
" >> imgindex.html done +cat indextail.html >> imgindex.html diff --git a/gallerygen/indexhead.html b/gallerygen/indexhead.html new file mode 100644 index 0000000..6368303 --- /dev/null +++ b/gallerygen/indexhead.html @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + + + + + + + Planica 2018 - Galerija + + + + +
diff --git a/gallerygen/indextail.html b/gallerygen/indextail.html new file mode 100644 index 0000000..5ac34a5 --- /dev/null +++ b/gallerygen/indextail.html @@ -0,0 +1,4 @@ +
+ + + \ No newline at end of file