From f75fad504b7181c6fd810016dfcb1672fc486ab7 Mon Sep 17 00:00:00 2001 From: "David T. Sadler" Date: Fri, 21 Feb 2020 21:46:46 +0000 Subject: Structure for category pages --- source/_categories/configuration.md | 5 +---- source/_categories/feature.md | 5 +---- source/_layouts/category.blade.php | 32 ++++++++------------------------ source/_posts/custom-404-page.md | 2 +- 4 files changed, 11 insertions(+), 33 deletions(-) (limited to 'source') diff --git a/source/_categories/configuration.md b/source/_categories/configuration.md index d613d9b..0642801 100644 --- a/source/_categories/configuration.md +++ b/source/_categories/configuration.md @@ -1,7 +1,4 @@ --- extends: _layouts.category -title: Configuration -description: Posts related to configuring the Jigsaw blog starter template +description: All the Configuration posts --- - -These posts are all related to configuring your Jigsaw blog starter template. diff --git a/source/_categories/feature.md b/source/_categories/feature.md index 6b8d55f..553cb2a 100644 --- a/source/_categories/feature.md +++ b/source/_categories/feature.md @@ -1,7 +1,4 @@ --- extends: _layouts.category -title: Feature -description: All posts that are about new features. +description: All the feature posts. --- - -These posts are about new features provided to you in the Jigsaw blog starter template. 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') - - - - -@endpush - -@section('body') -

{{ $page->title }}

- -
- @yield('content') -
- - @foreach ($page->posts($posts) as $post) - @include('_components.post-preview-inline') - - @if (! $loop->last) -
- @endif - @endforeach - - @include('_components.newsletter-signup') -@stop +@section('article') +

{{ $page->description }}

+
    + @foreach ($page->posts($posts) as $post) +
  1. {{$post->title }}
  2. + @endforeach +
+@endsection diff --git a/source/_posts/custom-404-page.md b/source/_posts/custom-404-page.md index d091fd0..6ae28c5 100644 --- a/source/_posts/custom-404-page.md +++ b/source/_posts/custom-404-page.md @@ -4,7 +4,7 @@ section: content title: Custom 404 Pages date: 2018-12-23 description: Add a custom 404 page is easy with Jigsaw -categories: [configuration, feature] +categories: [feature] --- This starter template includes a custom __404 Not Found__ error page, located at `/source/404.blade.php`. [To preview the 404 page](/404), you can visit `/404` in your browser. -- cgit v1.2.3-13-gbd6f