Add (jsonld)
This commit is contained in:
@@ -4,7 +4,9 @@
|
||||
{!! SEOMeta::generate() !!}
|
||||
{!! OpenGraph::generate() !!}
|
||||
{!! Twitter::generate() !!}
|
||||
{!! JsonLd::generate() !!}
|
||||
{!! JsonLdMulti::generate() !!}
|
||||
{!! SEOTools::generate() !!}
|
||||
<meta property="fb:app_id" content="{{ config('seotools.fb_app_id') }}" />
|
||||
<meta name="csrf-token" content="{{ csrf_token() }}">
|
||||
|
||||
@@ -15,3 +17,4 @@
|
||||
@vite(['resources/sass/app-front.scss', 'resources/js/app-front.js'])
|
||||
@laravelPWA
|
||||
@include('googletagmanager::head')
|
||||
@stack('top_head')
|
||||
|
||||
12
resources/views/front/partials/breadcrumbs.blade.php
Normal file
12
resources/views/front/partials/breadcrumbs.blade.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<nav style="--bs-breadcrumb-divider: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Cpath d='M2.5 0L1 1.5 3.5 4 1 6.5 2.5 8l4-4-4-4z' fill='%236c757d'/%3E%3C/svg%3E");"
|
||||
aria-label="breadcrumb">
|
||||
<ol class="breadcrumb">
|
||||
@foreach ($breadcrumbs as $breadcrumb)
|
||||
@if ($loop->last)
|
||||
<li class="breadcrumb-item active" aria-current="page">{{ $breadcrumb['name'] }}</li>
|
||||
@else
|
||||
<li class="breadcrumb-item"><a href="{{ $breadcrumb['url'] }}">{{ $breadcrumb['name'] }}</a></li>
|
||||
@endif
|
||||
@endforeach
|
||||
</ol>
|
||||
</nav>
|
||||
@@ -1,18 +1,9 @@
|
||||
@extends('front.layouts.app')
|
||||
@section('content')
|
||||
<main class="container">
|
||||
<nav style="--bs-breadcrumb-divider: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Cpath d='M2.5 0L1 1.5 3.5 4 1 6.5 2.5 8l4-4-4-4z' fill='%236c757d'/%3E%3C/svg%3E");"
|
||||
aria-label="breadcrumb">
|
||||
<ol class="breadcrumb">
|
||||
<li class="breadcrumb-item"><a href="{{ route('front.home') }}">Home</a></li>
|
||||
|
||||
@if (isset($category) && !is_null($category))
|
||||
<li class="breadcrumb-item active" aria-current="page">{{ $category->name }}</li>
|
||||
@else
|
||||
<li class="breadcrumb-item active" aria-current="page">Latest News</li>
|
||||
@endif
|
||||
</ol>
|
||||
</nav>
|
||||
@include('front.partials.breadcrumbs')
|
||||
|
||||
<div class="row g-5">
|
||||
<div class="col-md-8">
|
||||
<h1 class="pb-2 fw-normal h2">
|
||||
@@ -47,3 +38,7 @@
|
||||
</div>
|
||||
</main>
|
||||
@endsection
|
||||
|
||||
@push('top_head')
|
||||
{!! $breadcrumb_context !!}
|
||||
@endpush
|
||||
|
||||
@@ -1,19 +1,9 @@
|
||||
@extends('front.layouts.app')
|
||||
@section('content')
|
||||
<main class="container">
|
||||
<nav style="--bs-breadcrumb-divider: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Cpath d='M2.5 0L1 1.5 3.5 4 1 6.5 2.5 8l4-4-4-4z' fill='%236c757d'/%3E%3C/svg%3E");"
|
||||
aria-label="breadcrumb">
|
||||
<ol class="breadcrumb">
|
||||
<li class="breadcrumb-item"><a href="{{ route('front.home') }}">Home</a></li>
|
||||
|
||||
<li class="breadcrumb-item"><a
|
||||
href="{{ route('front.category', ['category_slug' => $post->category->slug]) }}">{{ $post->category->name }}</a>
|
||||
</li>
|
||||
@include('front.partials.breadcrumbs')
|
||||
|
||||
<li class="breadcrumb-item active" aria-current="page">{{ $post->title }}</li>
|
||||
|
||||
</ol>
|
||||
</nav>
|
||||
<div class="row g-5">
|
||||
<div class="col-md-8">
|
||||
|
||||
@@ -31,3 +21,7 @@
|
||||
</div>
|
||||
</main>
|
||||
@endsection
|
||||
|
||||
@push('top_head')
|
||||
{!! $breadcrumb_context !!}
|
||||
@endpush
|
||||
|
||||
Reference in New Issue
Block a user