Skip to content

Commit

Permalink
only insert author slide if we have the info available
Browse files Browse the repository at this point in the history
  • Loading branch information
jdan committed Aug 27, 2013
1 parent 15182bf commit 4ad05af
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/cleaver.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ Cleaver.prototype._parseDocument = function () {
self.slides.push(md(slices[i]));
}

self.slides.push(self._renderAuthorSlide(self.metadata.author));
if (self.metadata.author) {
self.slides.push(self._renderAuthorSlide(self.metadata.author));
}

// maybe load an external stylesheet
if (self.metadata.style) {
Expand Down

0 comments on commit 4ad05af

Please sign in to comment.