<% content_for :some_key do %>
---
layout: note
<% if defined? category %><% if category.is_a? Array %><%= "tags: #{category.join(", ")}\n"  %><% else %><%= "tags: #{category}\n" %><% end %><% end %>
<%= "permalink: #{slug}\n" if defined? slug %>
date: <%= published %>
---
<%= "![](#{photo})\n\n" if defined? photo %><%= content %>
<% end %>

<% content_for :some_key do %>
---
layout: note
<% if defined? category %><% if category.is_a? Array %><%= "tags: #{category.join(", ")}\n"  %><% else %><%= "tags: #{category}\n" %><% end %><% end %>
<%= "permalink: #{slug}\n" if defined? slug %>
date: <%= published %>
---
<% if defined? photo
  photo.each do | pic | %>
<%= "![](#{pic})\n\n"  %>
<% end %><% end %><%= content %>
<% end %>

Add support for multiple photos
Add support for multiple photos
