Skip to content

Commit

Permalink
Fixed template title
Browse files Browse the repository at this point in the history
  • Loading branch information
hotoo committed Oct 30, 2014
1 parent c9ebd3e commit f6f83d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function build(cwd, options){
del(dist_dir, function(){

gulp.src(path.join(template_dir, '**'), { dot: true })
.pipe(replace('{FILE_NANE}', path.basename(fileName) ))
.pipe(replace(/\{FILE_NANE\}/g, path.basename(fileName) ))
.pipe(gulp.dest(dist_dir));

gulp.src(path.join(cwd, fileName))
Expand Down
2 changes: 1 addition & 1 deletion template/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
$.get("{FILE_NANE}", function(markdown){
var mark = new Markline("#life", markdown);
mark.render();
document.title = mark.data.title;
document.title = (mark.data.title || "{FILE_NANE}").replace(/<[^>]+>/g, "");
});
});
});
Expand Down

0 comments on commit f6f83d7

Please sign in to comment.