diff options
author | Julian T <julian@jtle.dk> | 2020-06-08 17:17:06 +0200 |
---|---|---|
committer | Julian T <julian@jtle.dk> | 2020-06-08 17:17:06 +0200 |
commit | 27ac4613168f13742fad5c6c62473f25539fceab (patch) | |
tree | e3e8489b5828e5b00b8507be627728799979f9db | |
parent | 1ab44cebeb4a5b978d497fe44e64322093bfe715 (diff) |
Added gitingore and changes imginfo scheme
-rw-r--r-- | .gitignore | 1 | ||||
-rwxr-xr-x | build.rb | 11 | ||||
-rw-r--r-- | imginfo.yml | 25 | ||||
-rw-r--r-- | index.tmpl | 5 | ||||
-rw-r--r-- | saks.jpg | bin | 0 -> 10033209 bytes |
5 files changed, 25 insertions, 17 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a007fea --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +build/* @@ -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 "<h2>#{key}</h2>" + defs["groups"].each do |value| + file.puts "<div class=\"group\">" + if value[:title] + file.puts "<h2>#{value[:title]}</h2>" + 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 "<p>#{value["what"]}" end - + file.puts "</div>" 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 @@ -8,6 +8,11 @@ img { width: 90%; } +.group { + background-color: lightgray; + margin-bottom: 20px; + padding: 10px; +} </style> </head> <body> diff --git a/saks.jpg b/saks.jpg Binary files differnew file mode 100644 index 0000000..57f8fbc --- /dev/null +++ b/saks.jpg |