Added unique class name to body tag based on page name

This commit is contained in:
Grzegorz Leoniec 2019-01-18 15:23:33 +01:00
parent 233bce13e4
commit 1e51c44a62
No known key found for this signature in database
GPG Key ID: 3AA43686D4EB1377

View File

@ -3,6 +3,10 @@ export default {
return { return {
htmlAttrs: { htmlAttrs: {
lang: this.$i18n.locale() lang: this.$i18n.locale()
},
bodyAttrs: {
class: `page-name-${this.$route.name}`
}
} }
} }
} }