SEO social meta (#35)
* SEO social meta * Small wording changes Co-authored-by: Julien Nahum <jhumanj@MacBook-Pro-de-Julien.local>
This commit is contained in:
@@ -94,10 +94,10 @@ export default {
|
||||
{ vmid: 'description', name: 'description', content: description },
|
||||
{ vmid: 'og:title', property: 'og:title', content: appName },
|
||||
{ vmid: 'og:description', property: 'og:description', content: description },
|
||||
{ vmid: 'og:image', property: 'og:image', content: '/img/social-preview.png' },
|
||||
{ vmid: 'og:image', property: 'og:image', content: this.asset('img/social-preview.jpg') },
|
||||
{ vmid: 'twitter:title', property: 'twitter:title', content: appName },
|
||||
{ vmid: 'twitter:description', property: 'twitter:description', content: description },
|
||||
{ vmid: 'twitter:image', property: 'twitter:image', content: '/img/social-preview.png' },
|
||||
{ vmid: 'twitter:image', property: 'twitter:image', content: this.asset('img/social-preview.jpg') },
|
||||
{ vmid: 'twitter:card', property: 'twitter:card', content: 'summary_large_image' }
|
||||
]
|
||||
}
|
||||
|
||||
@@ -73,11 +73,6 @@ export default {
|
||||
next()
|
||||
},
|
||||
|
||||
props: {
|
||||
metaTitle: {type: String, default: 'Templates'},
|
||||
metaDescription: {type: String, default: 'Public templates for create form quickly!'}
|
||||
},
|
||||
|
||||
data() {
|
||||
return {}
|
||||
},
|
||||
@@ -105,7 +100,10 @@ export default {
|
||||
},
|
||||
form() {
|
||||
return new Form(this.template.structure)
|
||||
}
|
||||
},
|
||||
metaTitle () {
|
||||
return this.template ? this.template.name : 'Template'
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -21,11 +21,23 @@
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
|
||||
<title>{{ config('app.name') }}</title>
|
||||
|
||||
<link rel="stylesheet" href="{{ mix('dist/css/app.css') }}">
|
||||
<link rel="icon" href="{{asset('/img/logo.svg')}}">
|
||||
|
||||
@if($meta)
|
||||
<title>{{$meta['title']}}</title>
|
||||
<meta name='description' content='{{$meta['description']}}'>
|
||||
|
||||
<meta name='og:title' content='{{$meta['title']}}'>
|
||||
<meta name='og:description' content='{{$meta['description']}}'>
|
||||
<meta name='og:image' content='{{$meta['image']}}'>
|
||||
<meta name='og:site_name' content='OpenForm'>
|
||||
|
||||
<meta name="twitter:title" content="{{$meta['title']}}">
|
||||
<meta name="twitter:description" content="{{$meta['description']}}">
|
||||
<meta name="twitter:image" content="{{$meta['image']}}">
|
||||
@endif
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
|
||||
Reference in New Issue
Block a user