Skip to content

Commit 8c3f319

Browse files
ciscornpi0
authored andcommitted
fix: don't override title when titleTemplate is provided (#48)
1 parent 24d25bb commit 8c3f319

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/meta/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ function generateMeta (_options) {
9999
}
100100

101101
// Title
102-
if (options.name && !this.options.head.title) {
102+
if (options.name && !this.options.head.title && typeof(this.options.head.titleTemplate) !== 'function') {
103103
this.options.head.title = options.name
104104
}
105105

0 commit comments

Comments
 (0)