generated from boboko/starter
localization from boboko core and product service too
This commit is contained in:
@@ -15,10 +15,12 @@
|
||||
<title>@yield('title', config('app.name'))</title>
|
||||
<meta name="description" content="@yield('description', '')">
|
||||
|
||||
{{-- Reciprocal hreflang: self-reference + the alternate locale + x-default --}}
|
||||
{{-- Reciprocal hreflang: self-reference + every alternate locale + x-default --}}
|
||||
@isset($currentLocale)
|
||||
<link rel="alternate" hreflang="{{ $currentLocale }}" href="{{ url()->current() }}" />
|
||||
<link rel="alternate" hreflang="{{ $altLocale }}" href="{{ $altLocaleUrl }}" />
|
||||
@foreach ($altLocales ?? [] as $altLocale)
|
||||
<link rel="alternate" hreflang="{{ $altLocale['code'] }}" href="{{ $altLocale['url'] }}" />
|
||||
@endforeach
|
||||
<link rel="alternate" hreflang="x-default" href="{{ url('/') }}" />
|
||||
@endisset
|
||||
|
||||
|
||||
Reference in New Issue
Block a user