summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid T. Sadler <davidtsadler@googlemail.com>2020-03-07 19:50:24 +0000
committerDavid T. Sadler <davidtsadler@googlemail.com>2020-03-07 19:50:24 +0000
commit9240b4b969758bf2e73d8e4f6bc3fc92e611f32a (patch)
treedef88c5e4f0805caa5dba319d29fb21dcd9d7300
parent0b8eddf2cc42805c92d846e7d6566b18e5e3e554 (diff)
Style category pages
-rw-r--r--source/_layouts/category.blade.php2
-rw-r--r--source/_layouts/post.blade.php8
2 files changed, 8 insertions, 2 deletions
diff --git a/source/_layouts/category.blade.php b/source/_layouts/category.blade.php
index 8232ad8..27bc9dd 100644
--- a/source/_layouts/category.blade.php
+++ b/source/_layouts/category.blade.php
@@ -1,7 +1,7 @@
@extends('_layouts.master')
@section('article')
- <h1>{{ $page->description }}</h1>
+ <h1 class="p-4 text-green-600 text-4xl font-bold">{{ $page->description }}</h1>
<ol>
@foreach ($page->posts($posts) as $post)
@include('_partials.postStub')
diff --git a/source/_layouts/post.blade.php b/source/_layouts/post.blade.php
index fec0473..6d8fa30 100644
--- a/source/_layouts/post.blade.php
+++ b/source/_layouts/post.blade.php
@@ -1,6 +1,12 @@
@extends('_layouts.master')
@section('article')
- <h1>{{ $page->title }}</h1>
+ <header>
+ <h1 class="text-green-300 text-4xl font-bold">{{$page->title }}</h1>
+ <h2 class="text-2xl text-gray-300">{{ $page->description }}</h2>
+ <time class="" datetime="{{ $page->getDate()->format('Y-m-d') }}">
+ {{ $page->getDate()->format('M d, Y') }}
+ </time>
+ </header>
@yield('content')
@endsection