Skip to content

Commit

Permalink
better config
Browse files Browse the repository at this point in the history
  • Loading branch information
QuentinGab committed Aug 23, 2024
1 parent 6ba6689 commit 79ef2d3
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 1 deletion.
47 changes: 46 additions & 1 deletion config/seo.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,59 @@
// config for Elegantly/Seo
return [

/*
|--------------------------------------------------------------------------
| Default Title
|--------------------------------------------------------------------------
|
| This is the default value used for <title>, "og:title", "twitter:title"
|
*/
'title' => env('APP_NAME', 'Laravel'),

/*
|--------------------------------------------------------------------------
| Default Description
|--------------------------------------------------------------------------
|
| This is the default value used for <meta name="description">, <meta property="og:description">, <meta name="twitter:description">
|
*/
'description' => null,

/*
|--------------------------------------------------------------------------
| Default Image path
|--------------------------------------------------------------------------
|
| This is the default value used for <meta property="og:image">, <meta name="twitter:image">
| You can use relative path like "/opengraph.png" or url like "https://example.com/opengraph.png"
|
*/
'image' => null,

/*
|--------------------------------------------------------------------------
| Default Robots
|--------------------------------------------------------------------------
|
| This is the default value used for <meta name="robots">
| See Google documentation here: https://developers.google.com/search/docs/crawling-indexing/robots-meta-tag?hl=fr#directives
|
*/
'robots' => 'max-snippet:-1,max-image-preview:large,max-video-preview:-1',

/*
|--------------------------------------------------------------------------
| Default Sitemap path
|--------------------------------------------------------------------------
|
| This is the default value used for <link rel="sitemap">
| You can use relative path like "/sitemap.xml" or url like "https://example.com/sitemap.xml"
|
*/
'sitemap' => null,

'image' => null,


];
23 changes: 23 additions & 0 deletions src/OpenGraph/Verticals/Profile.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?php

namespace Elegantly\Seo\OpenGraph\Verticals;

/**
* @see https://ogp.me/
*/
class Profile extends Vertical
{
public string $type = 'profile';

/**
* @param null|'male'|'female' $gender
*/
public function __construct(
public ?string $first_name = null,
public ?string $last_name = null,
public ?string $username = null,
public ?string $gender = null,
) {
//
}
}

0 comments on commit 79ef2d3

Please sign in to comment.