-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add some fixes. * Change to check if app_env equals production.
- Loading branch information
1 parent
c9e8a76
commit c9faf3f
Showing
4 changed files
with
14 additions
and
6 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
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,6 +1,10 @@ | ||
@if(config('gzero.multilang.enabled') && !empty($content)) | ||
@foreach($content->route->translations as $translation) | ||
<link rel="alternate" href="{{$content->routeUrl($translation->langCode)}}" | ||
hreflang="{{$translation->langCode}}"/> | ||
@endforeach | ||
@if(config('gzero.multilang.enabled')) | ||
<link rel="alternate" href="{{env('APP_URL')}}" hreflang="x-default" /> | ||
@if(empty($content)) | ||
<link rel="alternate" href="{{url()->current()}}" hreflang="{{$lang->code}}"/> | ||
@else | ||
@foreach($content->route->translations as $translation) | ||
<link rel="alternate" href="{{$content->routeUrl($translation->lang_code)}}" hreflang="{{$translation->lang_code}}"/> | ||
@endforeach | ||
@endif | ||
@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