Update
This commit is contained in:
37
resources/views/pages/index.blade.php
Normal file
37
resources/views/pages/index.blade.php
Normal file
@@ -0,0 +1,37 @@
|
||||
@extends('layouts.site')
|
||||
|
||||
@push('head')
|
||||
@if(!empty($seo['meta_description']))
|
||||
<meta name="description" content="{{ $seo['meta_description'] }}">
|
||||
@endif
|
||||
@if(!empty($seo['meta_keywords']))
|
||||
<meta name="keywords" content="{{ $seo['meta_keywords'] }}">
|
||||
@endif
|
||||
@if(!empty($seo['meta_author']))
|
||||
<meta name="author" content="{{ $seo['meta_author'] }}">
|
||||
@endif
|
||||
@if(!empty($seo['meta_publisher']))
|
||||
<meta name="publisher" content="{{ $seo['meta_publisher'] }}">
|
||||
@endif
|
||||
@if(!empty($seo['meta_copyright']))
|
||||
<meta name="copyright" content="{{ $seo['meta_copyright'] }}">
|
||||
@endif
|
||||
@if(!empty($seo['meta_refresh']))
|
||||
<meta http-equiv="refresh" content="{{ $seo['meta_refresh'] }}">
|
||||
@endif
|
||||
<meta property="og:type" content="{{ $seo['og_type'] }}">
|
||||
<meta property="og:title" content="{{ $seo['og_title'] }}">
|
||||
@if(!empty($seo['og_description']))
|
||||
<meta property="og:description" content="{{ $seo['og_description'] }}">
|
||||
@endif
|
||||
@if(!empty($seo['og_image']))
|
||||
<meta property="og:image" content="{{ $seo['og_image'] }}">
|
||||
@endif
|
||||
<meta property="og:url" content="{{ request()->url() }}">
|
||||
@endpush
|
||||
|
||||
@section('content')
|
||||
<main class="page-content">
|
||||
{!! $page->content->content ?? '' !!}
|
||||
</main>
|
||||
@endsection
|
||||
Reference in New Issue
Block a user