diff options
| author | David T. Sadler <davidtsadler@googlemail.com> | 2020-02-21 21:46:46 +0000 |
|---|---|---|
| committer | David T. Sadler <davidtsadler@googlemail.com> | 2020-02-21 21:46:46 +0000 |
| commit | f75fad504b7181c6fd810016dfcb1672fc486ab7 (patch) | |
| tree | 838e4109eeec2f7e7c48d8a0ee84c9b8c35a3325 /source/_layouts | |
| parent | 9ea58efcba563ec7572ce155788e7b44a59de3c6 (diff) | |
Structure for category pages
Diffstat (limited to 'source/_layouts')
| -rw-r--r-- | source/_layouts/category.blade.php | 32 |
1 files changed, 8 insertions, 24 deletions
diff --git a/source/_layouts/category.blade.php b/source/_layouts/category.blade.php index 60ccede..bd62fd2 100644 --- a/source/_layouts/category.blade.php +++ b/source/_layouts/category.blade.php @@ -1,26 +1,10 @@ @extends('_layouts.master') -@push('meta') - <meta property="og:title" content="{{ $page->title }}" /> - <meta property="og:type" content="website" /> - <meta property="og:url" content="{{ $page->getUrl() }}"/> - <meta property="og:description" content="{{ $page->description }}" /> -@endpush - -@section('body') - <h1>{{ $page->title }}</h1> - - <div class="text-2xl border-b border-blue-200 mb-6 pb-10"> - @yield('content') - </div> - - @foreach ($page->posts($posts) as $post) - @include('_components.post-preview-inline') - - @if (! $loop->last) - <hr class="w-full border-b mt-2 mb-6"> - @endif - @endforeach - - @include('_components.newsletter-signup') -@stop +@section('article') + <h1>{{ $page->description }}</h1> + <ol> + @foreach ($page->posts($posts) as $post) + <li><a href="{{ $post->getUrl() }}">{{$post->title }}</a></li> + @endforeach + </ol> +@endsection |
