-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
07cced9
commit cb38eaf
Showing
10 changed files
with
117 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
@if (!empty($description)) | ||
<meta name="description" content="{{ $description }}"> | ||
@endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
@if (!empty($keywords)) | ||
<meta name="keywords" content="{{ $keywords }}"> | ||
@endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@if(!empty($og_description)) | ||
<meta property="og:description" content="{{ $og_description }}" /> | ||
<meta name="twitter:description" content="{{ $og_description }}" /> | ||
@endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@if (!empty($og_image)) | ||
<meta property="og:image" content="{{ asset('storage/' . $og_image) }}" /> | ||
<meta name="twitter:image" content="{{ asset('storage/' . $og_image) }}" /> | ||
@endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@if(!empty($og_title)) | ||
<meta property="og:title" content="{{ $og_title }}" /> | ||
<meta name="twitter:title" content="{{ $og_title }}" /> | ||
@endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
@if (!empty($robots)) | ||
<meta name="robots" content="{{ $robots }}"> | ||
@endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
@if (!empty($title)) | ||
<title>{{ $title }}</title> | ||
@endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,9 @@ | ||
@props(['title', 'description', 'robots', 'keywords', 'og_title', 'og_description', 'og_image']) | ||
|
||
@if (!empty($robots)) | ||
<meta name="robots" content="{{ $robots }}"> | ||
@endif | ||
|
||
@if (!empty($title)) | ||
<title>{{ $title }}</title> | ||
@endif | ||
|
||
@if (!empty($description)) | ||
<meta name="description" content="{{ $description }}"> | ||
@endif | ||
|
||
@if (!empty($keywords)) | ||
<meta name="keywords" content="{{ $keywords }}"> | ||
@endif | ||
|
||
@if(!empty($og_title)) | ||
<meta property="og:title" content="{{ $og_title }}" /> | ||
<meta name="twitter:title" content="{{ $og_title }}" /> | ||
@endif | ||
|
||
@if(!empty($og_description)) | ||
<meta property="og:description" content="{{ $og_description }}" /> | ||
<meta name="twitter:description" content="{{ $og_description }}" /> | ||
@endif | ||
|
||
@if (!empty($og_image)) | ||
<meta property="og:image" content="{{ asset('storage/' . $og_image) }}" /> | ||
<meta name="twitter:image" content="{{ asset('storage/' . $og_image) }}" /> | ||
@endif | ||
@include('$laravel-meta::fields.robots') | ||
@include('$laravel-meta::fields.title') | ||
@include('$laravel-meta::fields.description') | ||
@include('$laravel-meta::fields.keywords') | ||
@include('$laravel-meta::fields.og_title') | ||
@include('$laravel-meta::fields.og_description') | ||
@include('$laravel-meta::fields.og_image') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters