Closed curtisdelicata closed 4 years ago
you can use og
meta tags for this. I think you can do this with the help of Vue locally(you can look at this topic). but it's possible to add this to enso too but it depends on @aocneanu opinion :-D
Thanks for the reply. I did search but nothing came up. I'll take a look.
So if I add this to the vue config file I'll get a preview in theory as have not tested as my build is broke as per other issue. How do I overwrite the 'Enso' page title?
config.plugin('html').tap(args => {
args[0].meta = [
{
property: 'og:image',
content: ${environment_url}/images/logos/my_logo.png
,
},
{
property: 'og:image:width',
content: '1200',
},
{
property: 'og:image:height',
content: '1200',
},
];
return args;
});
yes, you can also edit vendor/laravel-enso/core/stubs/production-index.blade.stub
, this file is used by vue-cli to generate final index, you can change it and add your custom meta tag to it.
if you want to use this solution you may need to change this too.
Modifying stub and changing location to use new stub file works perfect. Many thanks.
This is a feature request.
Prerequisites
Description
Previews of the page on sites like Facebook just say Enso and a blank page. Is there anyway to improve or at least use my env name for site instead?
Steps to Reproduce
Expected behavior
Actual behavior