mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-26 04:46:22 +00:00
fix: algunos mixins por defecto
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
915ba0761f
commit
74b6899667
1 changed files with 1 additions and 9 deletions
|
@ -7,10 +7,7 @@
|
||||||
MetadataTemplate = Struct.new(:site, :document, :name, :label, :type,
|
MetadataTemplate = Struct.new(:site, :document, :name, :label, :type,
|
||||||
:value, :help, :required, :errors, :post,
|
:value, :help, :required, :errors, :post,
|
||||||
:layout, keyword_init: true) do
|
:layout, keyword_init: true) do
|
||||||
# Determina si el campo es indexable
|
include Metadata::FrontMatterConcern
|
||||||
def indexable?
|
|
||||||
false
|
|
||||||
end
|
|
||||||
|
|
||||||
def inspect
|
def inspect
|
||||||
"#<#{self.class} site=#{site.name.inspect} post=#{post.id.inspect} value=#{value.inspect}>"
|
"#<#{self.class} site=#{site.name.inspect} post=#{post.id.inspect} value=#{value.inspect}>"
|
||||||
|
@ -124,11 +121,6 @@ MetadataTemplate = Struct.new(:site, :document, :name, :label, :type,
|
||||||
value.to_s
|
value.to_s
|
||||||
end
|
end
|
||||||
|
|
||||||
# Decide si el metadato se coloca en el front_matter o no
|
|
||||||
def front_matter?
|
|
||||||
true
|
|
||||||
end
|
|
||||||
|
|
||||||
def array?
|
def array?
|
||||||
type == 'array'
|
type == 'array'
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue