diff --git a/poaster.rb b/poaster.rb index cbad441..a95ea83 100644 --- a/poaster.rb +++ b/poaster.rb @@ -29,7 +29,9 @@ post_type['frontMatter'].each do |item| end # Collect post content from user -post_content = spawn_input_box %(#{dialog_title_prefix} - Enter Content), %(Enter #{post_unit} content:) +if post_type['contentEnabled'] + post_content = spawn_input_box %(#{dialog_title_prefix} - Enter Content), %(Enter #{post_unit} content:) +end # Make sure the output folder exists post_directory = post_type['postDirectory']