diff --git a/app/models/deploy_distributed_press.rb b/app/models/deploy_distributed_press.rb index bc89a8b6..d2c6ec5f 100644 --- a/app/models/deploy_distributed_press.rb +++ b/app/models/deploy_distributed_press.rb @@ -87,7 +87,7 @@ class DeployDistributedPress < Deploy # @return [Array] def gateway_urls remote_info.dig(:distributed_press, :links)&.values&.map do |protocol| - [ protocol[:link], protocol[:gateway] ] + [protocol[:link]] end&.flatten&.compact&.select do |link| link.include? '://' end || [] diff --git a/app/models/site.rb b/app/models/site.rb index 3e12e621..70cf1b5b 100644 --- a/app/models/site.rb +++ b/app/models/site.rb @@ -391,8 +391,10 @@ class Site < ApplicationRecord end def reload - super - reload_jekyll! + super.tap do |s| + reload_jekyll! + end + self end def configuration diff --git a/app/views/posts/attributes/_file.haml b/app/views/posts/attributes/_file.haml index 20c27399..0287366c 100644 --- a/app/views/posts/attributes/_file.haml +++ b/app/views/posts/attributes/_file.haml @@ -1,4 +1,5 @@ .form-group{ data: { controller: 'file-preview' } } + = label_tag "#{base}_#{attribute}", post_label_t(attribute, post: post) - if metadata.static_file - case metadata.static_file.blob.content_type - when %r{\Avideo/} diff --git a/app/views/posts/attributes/_image.haml b/app/views/posts/attributes/_image.haml index 241a78e8..a0bfebde 100644 --- a/app/views/posts/attributes/_image.haml +++ b/app/views/posts/attributes/_image.haml @@ -1,4 +1,5 @@ .form-group{ data: { controller: 'file-preview' } } + = label_tag "#{base}_#{attribute}", post_label_t(attribute, post: post) - if metadata.static_file = image_tag url_for(metadata.static_file), alt: metadata.value['description'],