Added unique class name to body tag based on page name

This commit is contained in:
Grzegorz Leoniec 2018-12-29 19:42:56 +01:00
parent a9db76e24b
commit 8bb4c7dbdf
No known key found for this signature in database
GPG Key ID: 3AA43686D4EB1377

View File

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