diff options
Diffstat (limited to 'source/_layouts/post.blade.php')
| -rw-r--r-- | source/_layouts/post.blade.php | 50 |
1 files changed, 3 insertions, 47 deletions
diff --git a/source/_layouts/post.blade.php b/source/_layouts/post.blade.php index 97c73f8..fec0473 100644 --- a/source/_layouts/post.blade.php +++ b/source/_layouts/post.blade.php @@ -1,50 +1,6 @@ @extends('_layouts.master') -@push('meta') - <meta property="og:title" content="{{ $page->title }}" /> - <meta property="og:type" content="article" /> - <meta property="og:url" content="{{ $page->getUrl() }}"/> - <meta property="og:description" content="{{ $page->description }}" /> -@endpush - -@section('body') - @if ($page->cover_image) - <img src="{{ $page->cover_image }}" alt="{{ $page->title }} cover image" class="mb-2"> - @endif - - <h1 class="leading-none mb-2">{{ $page->title }}</h1> - - <p class="text-gray-700 text-xl md:mt-0">{{ $page->author }} • {{ date('F j, Y', $page->date) }}</p> - - @if ($page->categories) - @foreach ($page->categories as $i => $category) - <a - href="{{ '/blog/categories/' . $category }}" - title="View posts in {{ $category }}" - class="inline-block bg-gray-300 hover:bg-blue-200 leading-loose tracking-wide text-gray-800 uppercase text-xs font-semibold rounded mr-4 px-3 pt-px" - >{{ $category }}</a> - @endforeach - @endif - - <div class="border-b border-blue-200 mb-10 pb-4" v-pre> - @yield('content') - </div> - - <nav class="flex justify-between text-sm md:text-base"> - <div> - @if ($next = $page->getNext()) - <a href="{{ $next->getUrl() }}" title="Older Post: {{ $next->title }}"> - ← {{ $next->title }} - </a> - @endif - </div> - - <div> - @if ($previous = $page->getPrevious()) - <a href="{{ $previous->getUrl() }}" title="Newer Post: {{ $previous->title }}"> - {{ $previous->title }} → - </a> - @endif - </div> - </nav> +@section('article') + <h1>{{ $page->title }}</h1> + @yield('content') @endsection |
