@ -428,6 +428,12 @@ sub do_blog_page ( $c ) {
my $content = $c->param('pageContent');
my $headers = $c->param('pageHeaders');
if ( ! $path ) {
$c->flash( error_message => "You must add a filepath for the HTML file." );
$c->redirect_to( $c->url_for( 'show_dashboard_blog_page', { id => $blog->id } ) );
return;
}
my $jekyll = $c->jekyll($blog->domain->name);
my $page = $jekyll->new_page( "/$path.markdown" );