Unverified Commit ea9686bf authored by jack.wang's avatar jack.wang Committed by GitHub

Update master.blade.php

未定义变量:alternate
parent 8a2e095d
...@@ -7,9 +7,11 @@ ...@@ -7,9 +7,11 @@
@show @show
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<title>@section('title')@setting('core::site-name')@show</title> <title>@section('title')@setting('core::site-name')@show</title>
@foreach($alternate as $alternateLocale=>$alternateSlug) @if(isset($alternate))
<link rel="alternate" hreflang="{{$alternateLocale}}" href="{{url($alternateLocale.'/'.$alternateSlug)}}"> @foreach($alternate as $alternateLocale=>$alternateSlug)
@endforeach <link rel="alternate" hreflang="{{$alternateLocale}}" href="{{url($alternateLocale.'/'.$alternateSlug)}}">
@endforeach
@endif
<link rel="canonical" href="{{url()->current()}}" /> <link rel="canonical" href="{{url()->current()}}" />
<link rel="shortcut icon" href="{{ Theme::url('favicon.ico') }}"> <link rel="shortcut icon" href="{{ Theme::url('favicon.ico') }}">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment