From 8a59a4d61f20c7a7c03362d3f3a44e0197fd2827 Mon Sep 17 00:00:00 2001 From: "David T. Sadler" Date: Sat, 7 Mar 2020 22:33:31 +0000 Subject: Style post snippets --- source/_assets/sass/_blog.scss | 4 ++++ source/_categories/configuration.md | 4 ---- source/_categories/feature.md | 4 ---- source/_categories/mysql.md | 4 ---- source/_categories/php.md | 4 ---- source/_layouts/category.blade.php | 11 ----------- source/_layouts/master.blade.php | 4 ++-- source/_layouts/tag.blade.php | 10 ++++++++++ source/_partials/postStub.blade.php | 16 ++++++++-------- source/_posts/custom-404-page.md | 2 +- source/_posts/customizing-your-site.md | 2 +- source/_posts/fuse-search.md | 2 +- source/_posts/getting-started.md | 2 +- source/_posts/mailchimp-newsletters.md | 2 +- source/_posts/my-first-blog-post.md | 1 + source/_tags/configuration.md | 4 ++++ source/_tags/feature.md | 4 ++++ source/_tags/mysql.md | 4 ++++ source/_tags/php.md | 4 ++++ source/assets/build/css/main.css | 4 ++++ source/assets/build/mix-manifest.json | 2 +- 21 files changed, 51 insertions(+), 43 deletions(-) delete mode 100644 source/_categories/configuration.md delete mode 100644 source/_categories/feature.md delete mode 100644 source/_categories/mysql.md delete mode 100644 source/_categories/php.md delete mode 100644 source/_layouts/category.blade.php create mode 100644 source/_layouts/tag.blade.php create mode 100644 source/_tags/configuration.md create mode 100644 source/_tags/feature.md create mode 100644 source/_tags/mysql.md create mode 100644 source/_tags/php.md (limited to 'source') diff --git a/source/_assets/sass/_blog.scss b/source/_assets/sass/_blog.scss index d0ae886..e193a68 100644 --- a/source/_assets/sass/_blog.scss +++ b/source/_assets/sass/_blog.scss @@ -24,6 +24,10 @@ body { grid-template-areas: "sidebar main"; min-height: 100vh; } + + #main-sidebar-container aside { + max-width: 20rem; + } } a.php { diff --git a/source/_categories/configuration.md b/source/_categories/configuration.md deleted file mode 100644 index 0642801..0000000 --- a/source/_categories/configuration.md +++ /dev/null @@ -1,4 +0,0 @@ ---- -extends: _layouts.category -description: All the Configuration posts ---- diff --git a/source/_categories/feature.md b/source/_categories/feature.md deleted file mode 100644 index 553cb2a..0000000 --- a/source/_categories/feature.md +++ /dev/null @@ -1,4 +0,0 @@ ---- -extends: _layouts.category -description: All the feature posts. ---- diff --git a/source/_categories/mysql.md b/source/_categories/mysql.md deleted file mode 100644 index 9d40511..0000000 --- a/source/_categories/mysql.md +++ /dev/null @@ -1,4 +0,0 @@ ---- -extends: _layouts.category -description: All the MySql posts ---- diff --git a/source/_categories/php.md b/source/_categories/php.md deleted file mode 100644 index 7efa7fd..0000000 --- a/source/_categories/php.md +++ /dev/null @@ -1,4 +0,0 @@ ---- -extends: _layouts.category -description: All the PHP posts ---- diff --git a/source/_layouts/category.blade.php b/source/_layouts/category.blade.php deleted file mode 100644 index 90b64de..0000000 --- a/source/_layouts/category.blade.php +++ /dev/null @@ -1,11 +0,0 @@ -@extends('_layouts.master') - -@section('article') -

{{ $page->description }}

-
    - @foreach ($page->posts($posts) as $post) - @include('_partials.postStub') - @endforeach -
-@endsection - diff --git a/source/_layouts/master.blade.php b/source/_layouts/master.blade.php index 0a445e7..cb9ebdc 100644 --- a/source/_layouts/master.blade.php +++ b/source/_layouts/master.blade.php @@ -11,8 +11,8 @@
@yield('article')
diff --git a/source/_layouts/tag.blade.php b/source/_layouts/tag.blade.php new file mode 100644 index 0000000..86bcc97 --- /dev/null +++ b/source/_layouts/tag.blade.php @@ -0,0 +1,10 @@ +@extends('_layouts.master') + +@section('article') +
    + @foreach ($page->posts($posts) as $post) + @include('_partials.postStub') + @endforeach +
+@endsection + diff --git a/source/_partials/postStub.blade.php b/source/_partials/postStub.blade.php index cee9334..05fd557 100644 --- a/source/_partials/postStub.blade.php +++ b/source/_partials/postStub.blade.php @@ -1,16 +1,16 @@ -
  • +
  • -

    {{$post->title }}

    -

    {{ $post->description }}

    +

    {{$post->title }}

    +

    {{ $post->description }}

    -
    -