Add proper body_markdown back in
This commit is contained in:
parent
0f3342bcec
commit
1c3331d77f
1 changed files with 9 additions and 2 deletions
|
|
@ -47,8 +47,15 @@ class ArticlesController < ApplicationController
|
|||
processed_html: "")
|
||||
else
|
||||
skip_authorization
|
||||
Article.new
|
||||
end
|
||||
if params[:state] == "v2" || Rails.env.development?
|
||||
Article.new
|
||||
else
|
||||
Article.new(
|
||||
body_markdown: "---\ntitle: \npublished: false\ndescription: \ntags: \n---\n\n",
|
||||
processed_html: "",
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def edit
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue