mirror of
https://0xacab.org/sutty/sutty
synced 2025-03-15 01:48: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]
|
# @return [Array]
|
||||||
def gateway_urls
|
def gateway_urls
|
||||||
remote_info.dig(:distributed_press, :links)&.values&.map do |protocol|
|
remote_info.dig(:distributed_press, :links)&.values&.map do |protocol|
|
||||||
[ protocol[:link], protocol[:gateway] ]
|
[protocol[:link]]
|
||||||
end&.flatten&.compact&.select do |link|
|
end&.flatten&.compact&.select do |link|
|
||||||
link.include? '://'
|
link.include? '://'
|
||||||
end || []
|
end || []
|
||||||
|
|
|
@ -391,9 +391,11 @@ class Site < ApplicationRecord
|
||||||
end
|
end
|
||||||
|
|
||||||
def reload
|
def reload
|
||||||
super
|
super.tap do |s|
|
||||||
reload_jekyll!
|
reload_jekyll!
|
||||||
end
|
end
|
||||||
|
self
|
||||||
|
end
|
||||||
|
|
||||||
def configuration
|
def configuration
|
||||||
return @configuration if @configuration
|
return @configuration if @configuration
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
.form-group{ data: { controller: 'file-preview' } }
|
.form-group{ data: { controller: 'file-preview' } }
|
||||||
|
= label_tag "#{base}_#{attribute}", post_label_t(attribute, post: post)
|
||||||
- if metadata.static_file
|
- if metadata.static_file
|
||||||
- case metadata.static_file.blob.content_type
|
- case metadata.static_file.blob.content_type
|
||||||
- when %r{\Avideo/}
|
- when %r{\Avideo/}
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
.form-group{ data: { controller: 'file-preview' } }
|
.form-group{ data: { controller: 'file-preview' } }
|
||||||
|
= label_tag "#{base}_#{attribute}", post_label_t(attribute, post: post)
|
||||||
- if metadata.static_file
|
- if metadata.static_file
|
||||||
= image_tag url_for(metadata.static_file),
|
= image_tag url_for(metadata.static_file),
|
||||||
alt: metadata.value['description'],
|
alt: metadata.value['description'],
|
||||||
|
|
Loading…
Reference in a new issue