mirror of
https://0xacab.org/sutty/sutty
synced 2025-03-14 19:38:17 +00:00
Merge branch 'issue-16080' of https://0xacab.org/sutty/sutty into production.panel.sutty.nl
This commit is contained in:
commit
430c39bb9d
4 changed files with 7 additions and 3 deletions
|
@ -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 || []
|
||||
|
|
|
@ -391,8 +391,10 @@ class Site < ApplicationRecord
|
|||
end
|
||||
|
||||
def reload
|
||||
super
|
||||
reload_jekyll!
|
||||
super.tap do |s|
|
||||
reload_jekyll!
|
||||
end
|
||||
self
|
||||
end
|
||||
|
||||
def configuration
|
||||
|
|
|
@ -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/}
|
||||
|
|
|
@ -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'],
|
||||
|
|
Loading…
Reference in a new issue