Ajoute le module SEO

Pour #8
This commit is contained in:
2020-07-27 11:23:14 +02:00
parent 1d136093c7
commit d14694f162
6 changed files with 151 additions and 1 deletions

View File

@@ -165,6 +165,7 @@ return [
/*
* Package Service Providers...
*/
Artesaos\SEOTools\Providers\SEOToolsServiceProvider::class,
/*
* Application Service Providers...
@@ -220,6 +221,7 @@ return [
'Response' => Illuminate\Support\Facades\Response::class,
'Route' => Illuminate\Support\Facades\Route::class,
'Schema' => Illuminate\Support\Facades\Schema::class,
'SEO' => Artesaos\SEOTools\Facades\SEOTools::class,
'Session' => Illuminate\Support\Facades\Session::class,
'Storage' => Illuminate\Support\Facades\Storage::class,
'Str' => Illuminate\Support\Str::class,

68
config/seotools.php Normal file
View File

@@ -0,0 +1,68 @@
<?php
/**
* @see https://github.com/artesaos/seotools
*/
return [
'meta' => [
/*
* The default configurations to be used by the meta generator.
*/
'defaults' => [
'title' => 'Le projet Bretagne', // set false to total remove
'titleBefore' => false, // Put defaults.title before page title, like 'It's Over 9000! - Dashboard'
'description' => false, // set false to total remove
'separator' => ' - ',
'keywords' => ['immobilier'],
'canonical' => false, // Set null for using Url::current(), set false to total remove
'robots' => false, // Set to 'all', 'none' or any combination of index/noindex and follow/nofollow
],
/*
* Webmaster tags are always added.
*/
'webmaster_tags' => [
'google' => null,
'bing' => null,
'alexa' => null,
'pinterest' => null,
'yandex' => null,
'norton' => null,
],
'add_notranslate_class' => false,
],
'opengraph' => [
/*
* The default configurations to be used by the opengraph generator.
*/
'defaults' => [
'title' => 'Le projet Bretagne', // set false to total remove
'description' => false,
'url' => false, // Set null for using Url::current(), set false to total remove
'type' => 'article',
'site_name' => false,
'images' => [],
],
],
'twitter' => [
/*
* The default values to be used by the twitter cards generator.
*/
'defaults' => [
'card' => 'summary',
'site' => '@shikiryu',
],
],
'json-ld' => [
/*
* The default configurations to be used by the json-ld generator.
*/
'defaults' => [
'title' => 'Le projet Bretagne', // set false to total remove
'description' => false, // set false to total remove
'url' => false, // Set null for using Url::current(), set false to total remove
'type' => 'WebPage',
'images' => [],
],
],
];