Skip to content

Commit

Permalink
fix: don't override title when titleTemplate is provided (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
ciscorn authored and pi0 committed Apr 2, 2018
1 parent 24d25bb commit 8c3f319
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/meta/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ function generateMeta (_options) {
}

// Title
if (options.name && !this.options.head.title) {
if (options.name && !this.options.head.title && typeof(this.options.head.titleTemplate) !== 'function') {
this.options.head.title = options.name
}

Expand Down

0 comments on commit 8c3f319

Please sign in to comment.