From 27ac4613168f13742fad5c6c62473f25539fceab Mon Sep 17 00:00:00 2001 From: Julian T Date: Mon, 8 Jun 2020 17:17:06 +0200 Subject: Added gitingore and changes imginfo scheme --- .gitignore | 1 + build.rb | 11 +++++++---- imginfo.yml | 25 ++++++++++++------------- index.tmpl | 5 +++++ saks.jpg | Bin 0 -> 10033209 bytes 5 files changed, 25 insertions(+), 17 deletions(-) create mode 100644 .gitignore create mode 100644 saks.jpg diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a007fea --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +build/* diff --git a/build.rb b/build.rb index 608c6aa..a617fc0 100755 --- a/build.rb +++ b/build.rb @@ -79,7 +79,7 @@ files = {} puts defs -defs["groups"].each do |key, value| +defs["groups"].each do |value| # For each image inside group forImgs(value["imgs"]) do |img| @@ -99,8 +99,11 @@ File.open(File.join(options[:path], "index.html"), "w") do |file| # Print preample file.write(template[0]) - defs["groups"].each do |key, value| - file.puts "

#{key}

" + defs["groups"].each do |value| + file.puts "
" + if value[:title] + file.puts "

#{value[:title]}

" + end forImgs(value["imgs"]) do |img| href = options[:base] # If href is given add a filename at the end @@ -114,7 +117,7 @@ File.open(File.join(options[:path], "index.html"), "w") do |file| if value["what"] file.puts "

#{value["what"]}" end - + file.puts "

" end if options[:commit] diff --git a/imginfo.yml b/imginfo.yml index 4c21d8d..63f2fe4 100644 --- a/imginfo.yml +++ b/imginfo.yml @@ -1,14 +1,13 @@ groups: - Planter og ting: - imgs: - - blomster2.jpg - - blomster.jpg - Tangeværket: - imgs: - - el.jpg - - maskiner.jpg - Dwingeloo: - imgs: Struktur.jpg - Helgenæs: - imgs: bænk.jpg - what: Taget ved fyrtårn på Helgenæs. + - imgs: + - blomster2.jpg + - blomster.jpg + - imgs: + - el.jpg + - maskiner.jpg + what: Taget ved Tangeværket. + - imgs: Struktur.jpg + what: Taget ved Dwingeloo Radiotelescoop. + - imgs: bænk.jpg + what: Taget ved fyrtårn på Helgenæs. + - imgs: saks.jpg diff --git a/index.tmpl b/index.tmpl index e9edd70..a9dfadb 100644 --- a/index.tmpl +++ b/index.tmpl @@ -7,6 +7,11 @@ diff --git a/saks.jpg b/saks.jpg new file mode 100644 index 0000000..57f8fbc Binary files /dev/null and b/saks.jpg differ -- cgit v1.2.3