added correct page titles

This commit is contained in:
ManjaroOne666 2019-01-31 10:20:14 +00:00
parent b8f1d81d9c
commit b4837e1f47
7 changed files with 42 additions and 8 deletions

View File

@ -3,7 +3,8 @@
- also transitioning elements in when page loads (especially gallery thumbs in gallery) - also transitioning elements in when page loads (especially gallery thumbs in gallery)
* social nav items -> put in store or whatever * social nav items -> put in store or whatever
* facebook/twitter social card thingies * facebook/twitter social card thingies
* page titles * favicon
* page descriptions etc
## Services ## Services
* background image for mobile * background image for mobile

View File

@ -12,6 +12,7 @@ module.exports = {
*/ */
head: { head: {
title: pkg.name, title: pkg.name,
titleTemplate: 'Marc Leopold | %s',
meta: [ meta: [
{ charset: 'utf-8' }, { charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' }, { name: 'viewport', content: 'width=device-width, initial-scale=1' },

View File

@ -37,17 +37,20 @@ import ContentPage from '@/components/ContentPage'
import BackgroundImageLoader from '@/components/BackgroundImageLoader' import BackgroundImageLoader from '@/components/BackgroundImageLoader'
export default { export default {
name: 'HomePage', name: 'AboutPage',
components: { components: {
ContentPage, ContentPage,
BackgroundImageLoader, BackgroundImageLoader,
}, },
data() { head () {
return { return {
title: 'About Me',
// TODO meta - hid, name, content
} }
} },
} }
</script> </script>

View File

@ -82,7 +82,7 @@ import { required, email } from 'vuelidate/lib/validators'
import BackgroundImageLoader from '@/components/BackgroundImageLoader' import BackgroundImageLoader from '@/components/BackgroundImageLoader'
export default { export default {
name: 'HomePage', name: 'ContactPage',
components: { components: {
ContentPage, ContentPage,
@ -107,6 +107,13 @@ export default {
} }
}, },
head () {
return {
title: 'Contact Me',
// TODO meta - hid, name, content
}
},
computed: { computed: {
isDisabled () { isDisabled () {
return this.attemptedSubmit && this.$v.form.$invalid return this.attemptedSubmit && this.$v.form.$invalid

View File

@ -7,7 +7,7 @@
import GalleryPage from '@/components/GalleryPage' import GalleryPage from '@/components/GalleryPage'
export default { export default {
name: 'HomePage', name: 'GalleriesPage',
components: { components: {
GalleryPage GalleryPage
@ -92,7 +92,15 @@ export default {
}, },
] // galleries end ] // galleries end
} }
},
head () {
return {
title: 'My Galleries',
// TODO meta - hid, name, content
} }
},
} }
</script> </script>

View File

@ -72,6 +72,13 @@ export default {
} }
}, },
head () {
return {
title: 'Home',
// TODO meta - hid, name, content
}
},
mounted () { mounted () {
if (this.bgImages.length > 1) { if (this.bgImages.length > 1) {
this.setNextIndex() this.setNextIndex()

View File

@ -43,7 +43,7 @@ import BackgroundImagePreloader from '@/components/BackgroundImagePreloader'
import BackgroundImageLoader from '@/components/BackgroundImageLoader' import BackgroundImageLoader from '@/components/BackgroundImageLoader'
export default { export default {
name: 'HomePage', name: 'ServicesPage',
components: { components: {
ContentPage, ContentPage,
@ -88,6 +88,13 @@ export default {
} }
}, },
head () {
return {
title: 'My Services',
// TODO meta - hid, name, content
}
},
computed: { computed: {
backgroundImageUrls () { backgroundImageUrls () {
return this.services.map(el => el.backgroundImageUrl) return this.services.map(el => el.backgroundImageUrl)