mirror of
https://github.com/tenrok/vue-meta.git
synced 2026-06-23 08:50:33 +03:00
example: add falsy attr vlaue to ssr example
This commit is contained in:
+8
-1
@@ -69,7 +69,7 @@ export default function createApp () {
|
|||||||
return {
|
return {
|
||||||
title: 'Boring Title',
|
title: 'Boring Title',
|
||||||
htmlAttrs: { amp: true },
|
htmlAttrs: { amp: true },
|
||||||
bodyAttrs: { class: 'main-app' },
|
bodyAttrs: { class: 'main-app', tabIndex: 0 },
|
||||||
meta: [
|
meta: [
|
||||||
{
|
{
|
||||||
skip: this.count < 1,
|
skip: this.count < 1,
|
||||||
@@ -106,7 +106,14 @@ export default function createApp () {
|
|||||||
callback: this.loadCallback
|
callback: this.loadCallback
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
noscript: [{
|
||||||
|
innerHTML: "<strong>This website requires JavaScript.</strong>",
|
||||||
|
body: true,
|
||||||
|
hid: 'test'
|
||||||
|
}],
|
||||||
|
|
||||||
__dangerouslyDisableSanitizersByTagID: {
|
__dangerouslyDisableSanitizersByTagID: {
|
||||||
|
test: ['innerHTML'],
|
||||||
'ldjson-schema': ['innerHTML']
|
'ldjson-schema': ['innerHTML']
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user