diff --git a/_plugins/photo_gen.rb b/_plugins/photo_gen.rb index cb3d51c..5510a90 100644 --- a/_plugins/photo_gen.rb +++ b/_plugins/photo_gen.rb @@ -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', @@ -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