Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
sutty
sutty-cli
Commits
83e1e52a
Commit
83e1e52a
authored
Sep 21, 2020
by
f
Browse files
add the title to the post
parent
bfbba50f
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/sutty/cli/commands/post.rb
View file @
83e1e52a
...
...
@@ -35,6 +35,8 @@ module Sutty
@data
=
Hash
[(
data_layout
.
keys
-
CONTENT_FIELDS
).
map
{
|
k
|
[
k
,
nil
]
}]
# Required fields
@data
[
'title'
]
=
options
[
:title
]
@data
[
'layout'
]
=
options
[
:layout
]
@data
[
'uuid'
]
=
SecureRandom
.
uuid
@data
[
'liquid'
]
=
false
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment