mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-31 07:40:33 +00:00
fix meta typos
This commit is contained in:
parent
6fddf61ef7
commit
a078a631eb
@ -33,21 +33,21 @@ export default class MetaRenderer {
|
||||
// Links
|
||||
if (Array.isArray(this.options.head.link)) {
|
||||
this.options.head.link.forEach(link => {
|
||||
head += `<link data-n-head="true" ${attrsStr(link)} " />`
|
||||
head += `<link data-n-head="true" ${attrsStr(link)}/>`
|
||||
})
|
||||
}
|
||||
|
||||
// Style
|
||||
if (Array.isArray(this.options.head.style)) {
|
||||
this.options.head.link.forEach(style => {
|
||||
head += `<style data-n-head="true" ${attrsStr(style, ['cssText'])} ">${style.cssText || ''}</style>`
|
||||
this.options.head.style.forEach(style => {
|
||||
head += `<style data-n-head="true" ${attrsStr(style, ['cssText'])}>${style.cssText || ''}</style>`
|
||||
})
|
||||
}
|
||||
|
||||
// Script
|
||||
if (Array.isArray(this.options.head.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