Skip to content

Commit

Permalink
Add photo descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
s7uck committed Aug 2, 2024
1 parent 5982a7c commit a833c6a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion _plugins/photo_gen.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ def generate(site)
focal = pic.focallength
rating = pic.rating
mode = modes[pic.exposure_program || 'AUTO']
description = pic.comment

photo_data = {
'layout' => 'photo',
Expand All @@ -57,7 +58,7 @@ def generate(site)
}

photo_page = PageWithoutAFile.new(site, site.source, output_url, "#{photo_name}.md")
photo_page.content = ""
photo_page.content = description
photo_page.data.merge!(photo_data)

site.pages << photo_page
Expand Down

0 comments on commit a833c6a

Please sign in to comment.