diff --git a/app/models/communication/website/with_media.rb b/app/models/communication/website/with_media.rb index 032f22aecdf529b21a4bb9905fb3b3b8d0ed5a13..4ec63e11df6a0b94b102092de61ad48192232fd8 100644 --- a/app/models/communication/website/with_media.rb +++ b/app/models/communication/website/with_media.rb @@ -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) diff --git a/app/views/active_storage/blobs/jekyll.html.erb b/app/views/active_storage/blobs/jekyll.html.erb index e314b22bda4ceb11b359acd2331840cd98f40a79..a095edb68b472a95e2c1e1cfaea48022d8884f96 100644 --- a/app/views/active_storage/blobs/jekyll.html.erb +++ b/app/views/active_storage/blobs/jekyll.html.erb @@ -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 %> ----