5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2025-03-14 22:38:20 +00:00

Merge branch 'issue-16080' of https://0xacab.org/sutty/sutty into production.panel.sutty.nl

This commit is contained in:
Sutty 2024-04-19 17:47:59 +00:00
commit 430c39bb9d
4 changed files with 7 additions and 3 deletions

View file

@ -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 || []

View file

@ -391,9 +391,11 @@ class Site < ApplicationRecord
end
def reload
super
super.tap do |s|
reload_jekyll!
end
self
end
def configuration
return @configuration if @configuration

View file

@ -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/}

View file

@ -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'],