From c5eb06f687e3a2ad87cb3662faf75c808b42ffb5 Mon Sep 17 00:00:00 2001 From: f Date: Wed, 11 Nov 2020 19:49:44 -0300 Subject: [PATCH] nunca sin bugs --- app/models/site/static_file_migration.rb | 2 -- app/views/posts/show.haml | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/app/models/site/static_file_migration.rb b/app/models/site/static_file_migration.rb index 00bdd8b3..115d749f 100644 --- a/app/models/site/static_file_migration.rb +++ b/app/models/site/static_file_migration.rb @@ -62,8 +62,6 @@ class Site metadata.static_file.blob.upload path.open metadata.static_file.blob.analyze - next unless remove - dest = Pathname.new(metadata.send(:relative_destination_path)) # Eliminamos el archivo original y lo vinculamos al subido diff --git a/app/views/posts/show.haml b/app/views/posts/show.haml index 20397b3d..3cb24c52 100644 --- a/app/views/posts/show.haml +++ b/app/views/posts/show.haml @@ -37,7 +37,7 @@ -# Mostrar todo lo que no va en el front_matter (el contenido) - @post.attributes.each do |attr| - - metadata - @post[attr] + - metadata = @post[attr] - next if metadata.front_matter? - cache metadata do