Fix title parser.

master
Blog Manager Robot 3 years ago
parent cec004bd84
commit b4b7ee19b7
  1. 4
      libs/MJB-Backend-Jekyll/lib/MJB/Backend/Jekyll.pm

@ -104,9 +104,9 @@ sub get_title_of_post {
open my $lf, "<", $file
or die "Failed to open $file for reading: $!";
while ( defined( my $line = <$lf> ) ) {
if ( $line =~ /^title: (.+)$/ ) {
if ( $line =~ /^title: "(.+)"$/ ) {
close $lf;
return $line;
return $1;
}
}
close $lf;

Loading…
Cancel
Save