mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-07 09:22:27 +00:00
fix meta typos
This commit is contained in:
parent
6fddf61ef7
commit
a078a631eb
@ -26,28 +26,28 @@ export default class MetaRenderer {
|
|||||||
// Meta
|
// Meta
|
||||||
if (Array.isArray(this.options.head.meta)) {
|
if (Array.isArray(this.options.head.meta)) {
|
||||||
this.options.head.meta.forEach(meta => {
|
this.options.head.meta.forEach(meta => {
|
||||||
head += `<meta data-n-head="true" ${attrsStr(meta)} />`
|
head += `<meta data-n-head="true" ${attrsStr(meta)}/>`
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// Links
|
// Links
|
||||||
if (Array.isArray(this.options.head.link)) {
|
if (Array.isArray(this.options.head.link)) {
|
||||||
this.options.head.link.forEach(link => {
|
this.options.head.link.forEach(link => {
|
||||||
head += `<link data-n-head="true" ${attrsStr(link)} " />`
|
head += `<link data-n-head="true" ${attrsStr(link)}/>`
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// Style
|
// Style
|
||||||
if (Array.isArray(this.options.head.style)) {
|
if (Array.isArray(this.options.head.style)) {
|
||||||
this.options.head.link.forEach(style => {
|
this.options.head.style.forEach(style => {
|
||||||
head += `<style data-n-head="true" ${attrsStr(style, ['cssText'])} ">${style.cssText || ''}</style>`
|
head += `<style data-n-head="true" ${attrsStr(style, ['cssText'])}>${style.cssText || ''}</style>`
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// Script
|
// Script
|
||||||
if (Array.isArray(this.options.head.script)) {
|
if (Array.isArray(this.options.head.script)) {
|
||||||
this.options.head.script.forEach(script => {
|
this.options.head.script.forEach(script => {
|
||||||
head += `<script data-n-head="true" ${attrsStr(script, ['innerHTML'])} ">${script.innerHTML || ''}</script>`
|
head += `<script data-n-head="true" ${attrsStr(script, ['innerHTML'])}>${script.innerHTML || ''}</script>`
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user