poder colocar el titulo en cualquier parte de la plantilla
This commit is contained in:
parent
3cfdc25de7
commit
3fbffd5e7a
2 changed files with 5 additions and 4 deletions
|
@ -23,7 +23,7 @@ class Post
|
|||
# datos que no tienen que terminar en el front matter
|
||||
REJECT_FROM_FRONT_MATTER = %w[date slug ext].freeze
|
||||
# datos que no traemos del template
|
||||
REJECT_FROM_TEMPLATE = %w[draft categories layout title ext tags date slug post pre].freeze
|
||||
REJECT_FROM_TEMPLATE = %w[draft categories layout ext tags date slug post pre].freeze
|
||||
DEFAULT_PARAMS = [:title, :date, :content, :slug, :cover,
|
||||
:layout, :permalink, :dir,
|
||||
{ lang: {} }, { tags: [] }, { categories: [] }].freeze
|
||||
|
|
|
@ -49,6 +49,7 @@
|
|||
options_for_select([[t('posts.ltr'), 'ltr'], [t('posts.rtl'), 'rtl']], direction),
|
||||
{ class: 'form-control' }
|
||||
%small.text-muted.form-text= t('posts.dir_help')
|
||||
- if @post.has_field? :title
|
||||
.form-group
|
||||
= label_tag 'post_title', t('posts.title')
|
||||
= text_field 'post', 'title', value: @post.title, class: field_class, required: true
|
||||
|
|
Loading…
Reference in a new issue