Skip to content
Snippets Groups Projects
Unverified Commit a6288eef authored by Sébastien Gaya's avatar Sébastien Gaya
Browse files

new data media directory

parent b00f3d42
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,7 @@ module Communication::Website::WithMedia
end
def blob_github_path_generated(blob)
"_media/#{blob.id[0..1]}/#{blob.id}.md"
"_data/media/#{blob.id[0..1]}/#{blob.id}.yml"
end
def blob_to_jekyll(blob)
......
......@@ -2,7 +2,6 @@
width, height = @blob.metadata.values_at('width', 'height')
ratio = width.present? && height.present? ? (width.to_f / height.to_f) : nil
%>
---
name: <%= @blob.filename.to_s %>
size: <%= @blob.byte_size %>
<% if width.present? %>width: <%= width %><% end %>
......@@ -10,4 +9,3 @@ size: <%= @blob.byte_size %>
<% if ratio.present? %>ratio: <%= ratio %><% end %>
<%# TODO: Replace with the media endpoint when it's ready %>
url: <%= @blob.url %>
---
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment