|
@@ -1,21 +1,27 @@
|
|
|
@section ('crumbs')
|
|
|
<nav>
|
|
|
- <ul class="f-crumbs">
|
|
|
+ <ol class="f-crumbs" itemscope itemtype="http://schema.org/BreadcrumbList">
|
|
|
@foreach ($p->crumbs as $cur)
|
|
|
@if (\is_object($cur[0]))
|
|
|
- <li class="f-crumb @if ($cur[0]->is_subscribed) f-subscribed @endif"><!-- inline -->
|
|
|
- <a class="f-crumb-a @if ($cur[2]) active @endif" href="{{ $cur[0]->link }}">{!! __($cur[1]) !!}</a>
|
|
|
+ <li class="f-crumb @if ($cur[0]->is_subscribed) f-subscribed @endif" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"><!-- inline -->
|
|
|
+ <a class="f-crumb-a @if ($cur[2]) active @endif" href="{{ $cur[0]->link }}" itemprop="item">
|
|
|
+ <span itemprop="name">{!! __($cur[1]) !!}</span>
|
|
|
+ </a>
|
|
|
+ <meta itemprop="position" content="{!! @iteration !!}">
|
|
|
</li><!-- endinline -->
|
|
|
@else
|
|
|
- <li class="f-crumb"><!-- inline -->
|
|
|
+ <li class="f-crumb" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"><!-- inline -->
|
|
|
@if ($cur[0])
|
|
|
- <a class="f-crumb-a @if ($cur[2]) active @endif" href="{{ $cur[0] }}">{!! __($cur[1]) !!}</a>
|
|
|
+ <a class="f-crumb-a @if ($cur[2]) active @endif" href="{{ $cur[0] }}" itemprop="item">
|
|
|
+ <span itemprop="name">{!! __($cur[1]) !!}</span>
|
|
|
+ </a>
|
|
|
@else
|
|
|
- <span @if ($cur[2]) class="active" @endif>{!! __($cur[1]) !!}</span>
|
|
|
+ <span @if ($cur[2]) class="active" @endif itemprop="name">{!! __($cur[1]) !!}</span>
|
|
|
@endif
|
|
|
+ <meta itemprop="position" content="{!! @iteration !!}">
|
|
|
</li><!-- endinline -->
|
|
|
@endif
|
|
|
@endforeach
|
|
|
- </ul>
|
|
|
+ </ol>
|
|
|
</nav>
|
|
|
@endsection
|