@@ -49,27 +49,27 @@ function generateMeta (_options) {
49
49
50
50
// Charset
51
51
if ( options . charset && ! find ( this . options . head . meta , 'charset' ) ) {
52
- this . options . head . meta . push ( { charset : options . charset } )
52
+ this . options . head . meta . push ( { hid : 'charset' , charset : options . charset } )
53
53
}
54
54
55
55
// Viewport
56
56
if ( options . viewport && ! find ( this . options . head . meta , 'name' , 'viewport' ) ) {
57
- this . options . head . meta . push ( { name : 'viewport' , content : options . viewport } )
57
+ this . options . head . meta . push ( { hid : 'viewport' , name : 'viewport' , content : options . viewport } )
58
58
}
59
59
60
60
// mobileApp
61
61
if ( options . mobileApp && ! find ( this . options . head . meta , 'name' , 'mobile-web-app-capable' ) ) {
62
- this . options . head . meta . push ( { name : 'mobile-web-app-capable' , content : 'yes' } )
62
+ this . options . head . meta . push ( { hid : 'mobile-web-app-capable' , name : 'mobile-web-app-capable' , content : 'yes' } )
63
63
}
64
64
65
65
// mobileApp (IOS)
66
66
if ( options . mobileAppIOS && ! find ( this . options . head . meta , 'name' , 'apple-mobile-web-app-capable' ) ) {
67
- this . options . head . meta . push ( { name : 'apple-mobile-web-app-capable' , content : 'yes' } )
67
+ this . options . head . meta . push ( { hid : 'apple-mobile-web-app-capable' , name : 'apple-mobile-web-app-capable' , content : 'yes' } )
68
68
}
69
69
70
70
// statusBarStyle (IOS)
71
71
if ( options . mobileAppIOS && options . appleStatusBarStyle && ! find ( this . options . head . meta , 'name' , 'apple-mobile-web-app-status-bar-style' ) ) {
72
- this . options . head . meta . push ( { name : 'apple-mobile-web-app-status-bar-style' , content : options . appleStatusBarStyle } )
72
+ this . options . head . meta . push ( { hid : 'apple-mobile-web-app-status-bar-style' , name : 'apple-mobile-web-app-status-bar-style' , content : options . appleStatusBarStyle } )
73
73
}
74
74
75
75
// Icons
@@ -99,7 +99,7 @@ function generateMeta (_options) {
99
99
// IOS launch icon title
100
100
const title = options . name || this . options . head . title || false
101
101
if ( title && ! find ( this . options . head . meta , 'name' , 'apple-mobile-web-app-title' ) ) {
102
- this . options . head . meta . push ( { name : 'apple-mobile-web-app-title' , content : title } )
102
+ this . options . head . meta . push ( { hid : 'apple-mobile-web-app-title' , name : 'apple-mobile-web-app-title' , content : title } )
103
103
}
104
104
105
105
// description meta
@@ -109,7 +109,7 @@ function generateMeta (_options) {
109
109
110
110
// theme-color meta
111
111
if ( options . theme_color && ! find ( this . options . head . meta , 'name' , 'theme-color' ) ) {
112
- this . options . head . meta . push ( { name : 'theme-color' , content : options . theme_color } )
112
+ this . options . head . meta . push ( { hid : 'theme-color' , name : 'theme-color' , content : options . theme_color } )
113
113
}
114
114
115
115
// Add lang to html tag
@@ -122,23 +122,23 @@ function generateMeta (_options) {
122
122
123
123
// og:type
124
124
if ( options . ogType && ! find ( this . options . head . meta , 'property' , 'og:type' ) && ! find ( this . options . head . meta , 'name' , 'og:type' ) ) {
125
- this . options . head . meta . push ( { name : 'og:type' , property : 'og:type' , content : options . ogType } )
125
+ this . options . head . meta . push ( { hid : 'og:type' , name : 'og:type' , property : 'og:type' , content : options . ogType } )
126
126
}
127
127
128
128
// og:title
129
129
if ( options . ogTitle === true ) {
130
130
options . ogTitle = options . name
131
131
}
132
132
if ( options . ogTitle && ! find ( this . options . head . meta , 'property' , 'og:title' ) && ! find ( this . options . head . meta , 'name' , 'og:title' ) ) {
133
- this . options . head . meta . push ( { name : 'og:title' , property : 'og:title' , content : options . ogTitle } )
133
+ this . options . head . meta . push ( { hid : 'og:title' , name : 'og:title' , property : 'og:title' , content : options . ogTitle } )
134
134
}
135
135
136
136
// og:description
137
137
if ( options . ogDescription === true ) {
138
138
options . ogDescription = options . description
139
139
}
140
140
if ( options . ogDescription && ! find ( this . options . head . meta , 'property' , 'og:description' ) && ! find ( this . options . head . meta , 'name' , 'og:description' ) ) {
141
- this . options . head . meta . push ( { name : 'og:description' , property : 'og:description' , content : options . ogDescription } )
141
+ this . options . head . meta . push ( { hid : 'og:description' , name : 'og:description' , property : 'og:description' , content : options . ogDescription } )
142
142
}
143
143
}
144
144
0 commit comments