From 9ce9cf50af6b81c76b7acd9ef31dace11cee728b Mon Sep 17 00:00:00 2001 From: "David T. Sadler" Date: Wed, 26 Feb 2020 21:54:33 +0000 Subject: Add post stub --- source/_layouts/category.blade.php | 2 +- source/_partials/postStub.blade.php | 16 ++++++++++++++++ source/_posts/customizing-your-site.md | 2 +- source/index.blade.php | 2 +- 4 files changed, 19 insertions(+), 3 deletions(-) create mode 100644 source/_partials/postStub.blade.php (limited to 'source') diff --git a/source/_layouts/category.blade.php b/source/_layouts/category.blade.php index bd62fd2..8232ad8 100644 --- a/source/_layouts/category.blade.php +++ b/source/_layouts/category.blade.php @@ -4,7 +4,7 @@

{{ $page->description }}

    @foreach ($page->posts($posts) as $post) -
  1. {{$post->title }}
  2. + @include('_partials.postStub') @endforeach
@endsection diff --git a/source/_partials/postStub.blade.php b/source/_partials/postStub.blade.php new file mode 100644 index 0000000..5f1af95 --- /dev/null +++ b/source/_partials/postStub.blade.php @@ -0,0 +1,16 @@ +
  • + +

    {{$post->title }}

    +

    {{ $post->description }}

    +
    +
    + +
    + @foreach ($post->categories as $category) + {{ $category }} + @endforeach +
    +
    +
  • diff --git a/source/_posts/customizing-your-site.md b/source/_posts/customizing-your-site.md index 894db6c..50b53a1 100644 --- a/source/_posts/customizing-your-site.md +++ b/source/_posts/customizing-your-site.md @@ -4,7 +4,7 @@ section: content title: Customizing Your Site date: 2018-12-24 description: Customize your site with CSS and JS -categories: [configuration] +categories: [configuration, feature] featured: true excerpt: This starter template comes pre-loaded with Tailwind CSS, a utility CSS framework that allows you to customize and build complex designs without touching a line of CSS. --- diff --git a/source/index.blade.php b/source/index.blade.php index 998f56a..bb919a4 100644 --- a/source/index.blade.php +++ b/source/index.blade.php @@ -7,7 +7,7 @@ pagination: @section('article')
      @foreach ($pagination->items as $post) -
    1. {{$post->title }}
    2. + @include('_partials.postStub') @endforeach