mirror of
https://github.com/archtechx/laravel-seo.git
synced 2025-12-12 01:44:03 +00:00
Merge branch 'master' of github.com:archtechx/laravel-seo
This commit is contained in:
commit
157318e61b
2 changed files with 23 additions and 13 deletions
|
|
@ -1,9 +1,19 @@
|
||||||
|
@if(seo('title'))
|
||||||
<title>@seo('title')</title>
|
<title>@seo('title')</title>
|
||||||
|
<meta property="og:title" content="@seo('title')" />
|
||||||
|
@endif
|
||||||
|
|
||||||
|
@if(seo('description'))
|
||||||
|
<meta property="og:description" content="@seo('description')" />
|
||||||
|
<meta name="description" content="@seo('description')" />
|
||||||
|
@endif
|
||||||
|
|
||||||
<meta property="og:type" content="website" />
|
<meta property="og:type" content="website" />
|
||||||
|
|
||||||
@if(seo('site')) <meta property="og:site_name" content="@seo('site')"> @endif
|
@if(seo('site')) <meta property="og:site_name" content="@seo('site')"> @endif
|
||||||
@if(seo('title')) <meta property="og:title" content="@seo('title')" /> @endif
|
|
||||||
@if(seo('description')) <meta property="og:description" content="@seo('description')" /> @endif
|
|
||||||
@if(seo('image')) <meta property="og:image" content="@seo('image')" /> @endif
|
@if(seo('image')) <meta property="og:image" content="@seo('image')" /> @endif
|
||||||
|
|
||||||
@if(seo('url'))
|
@if(seo('url'))
|
||||||
<meta property="og:url" content="@seo('url')" />
|
<meta property="og:url" content="@seo('url')" />
|
||||||
<link rel="canonical" href="@seo('url')" />
|
<link rel="canonical" href="@seo('url')" />
|
||||||
|
|
|
||||||
|
|
@ -8,16 +8,16 @@ use Closure;
|
||||||
use Illuminate\Support\Str;
|
use Illuminate\Support\Str;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @method $this title(string $title) Set the title.
|
* @method $this title(string $title = null, ...$args) Set the title.
|
||||||
* @method $this description(string $description) Set the description.
|
* @method $this description(string $description = null, ...$args) Set the description.
|
||||||
* @method $this url(string $url) Set the canonical URL.
|
* @method $this url(string $url = null, ...$args) Set the canonical URL.
|
||||||
* @method $this site(string $site) Set the site name.
|
* @method $this site(string $site = null, ...$args) Set the site name.
|
||||||
* @method $this image(string $url) Set the cover image.
|
* @method $this image(string $url = null, ...$args) Set the cover image.
|
||||||
* @method $this twitter(enabled $bool = true) Enable the Twitter extension.
|
* @method $this twitter(enabled $bool = true, ...$args) Enable the Twitter extension.
|
||||||
* @method $this twitterSite(string $username) Set the Twitter author.
|
* @method $this twitterSite(string $username = null, ...$args) Set the Twitter author.
|
||||||
* @method $this twitterTitle(string $title) Set the Twitter title.
|
* @method $this twitterTitle(string $title = null, ...$args) Set the Twitter title.
|
||||||
* @method $this twitterDescription(string $description) Set the Twitter description.
|
* @method $this twitterDescription(string $description = null, ...$args) Set the Twitter description.
|
||||||
* @method $this twitterImage(string $url) Set the Twitter cover image.
|
* @method $this twitterImage(string $url = null, ...$args) Set the Twitter cover image.
|
||||||
*/
|
*/
|
||||||
class SEOManager
|
class SEOManager
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue