File tree 2 files changed +0
-24
lines changed
packages/@vuepress/core/lib
2 files changed +0
-24
lines changed Original file line number Diff line number Diff line change 7
7
< meta name ="description " content ="{{ description }} ">
8
8
< meta name ="generator " content ="VuePress {{ version }} ">
9
9
{{{ userHeadTags }}}
10
- {{{ pageMeta }}}
11
10
{{{ renderResourceHints() }}}
12
11
{{{ renderStyles() }}}
13
12
</ head >
Original file line number Diff line number Diff line change @@ -138,14 +138,9 @@ module.exports = class Build extends EventEmitter {
138
138
readline . cursorTo ( process . stdout , 0 )
139
139
process . stdout . write ( `Rendering page: ${ pagePath } ` )
140
140
141
- // #565 Avoid duplicate description meta at SSR.
142
- const meta = ( page . frontmatter && page . frontmatter . meta || [ ] ) . filter ( item => item . name !== 'description' )
143
- const pageMeta = renderPageMeta ( meta )
144
-
145
141
const context = {
146
142
url : page . path ,
147
143
userHeadTags : this . userHeadTags ,
148
- pageMeta,
149
144
title : 'VuePress' ,
150
145
lang : 'en' ,
151
146
description : '' ,
@@ -225,24 +220,6 @@ function renderAttrs (attrs = {}) {
225
220
}
226
221
}
227
222
228
- /**
229
- * Render meta tags
230
- *
231
- * @param {Array } meta
232
- * @returns {Array<string> }
233
- */
234
-
235
- function renderPageMeta ( meta ) {
236
- if ( ! meta ) return ''
237
- return meta . map ( m => {
238
- let res = `<meta`
239
- Object . keys ( m ) . forEach ( key => {
240
- res += ` ${ key } ="${ escape ( m [ key ] ) } "`
241
- } )
242
- return res + `>`
243
- } ) . join ( '' )
244
- }
245
-
246
223
/**
247
224
* find and remove empty style chunk caused by
248
225
* https://github.com/webpack-contrib/mini-css-extract-plugin/issues/85
You can’t perform that action at this time.
0 commit comments