summaryrefslogtreecommitdiff
path: root/source/_layouts
diff options
context:
space:
mode:
Diffstat (limited to 'source/_layouts')
-rw-r--r--source/_layouts/master.blade.php1
-rw-r--r--source/_layouts/post.blade.php10
2 files changed, 10 insertions, 1 deletions
diff --git a/source/_layouts/master.blade.php b/source/_layouts/master.blade.php
index 9b1deda..580496e 100644
--- a/source/_layouts/master.blade.php
+++ b/source/_layouts/master.blade.php
@@ -17,6 +17,7 @@
@endforeach
</aside>
</div>
+ <script src="{{ mix('js/main.js', 'assets/build') }}"></script>
</body>
</html>
diff --git a/source/_layouts/post.blade.php b/source/_layouts/post.blade.php
index 560a975..adecd6a 100644
--- a/source/_layouts/post.blade.php
+++ b/source/_layouts/post.blade.php
@@ -2,7 +2,7 @@
@extends('_layouts.master')
@section('article')
- <header class="sm:flex sm:flex-row sm:justify-between p-4 pb-8">
+ <header class="sm:flex sm:flex-row sm:justify-between p-4 pb-8 border-b border-green-100 border-dashed mb-8">
<div>
<h1 class="text-green-300 text-3xl font-bold">{{$page->title }}</h1>
<p class="text-2xl text-gray-300">{{ $page->description }}</p>
@@ -19,5 +19,13 @@
</div>
</header>
@yield('content')
+ <nav class="mt-12 pt-8 flex justify-between text-2xl border-t border-green-700">
+ @if ($page->getPrevious())
+ <a href="{{ $page->getPrevious()->getPath() }}">&lt;&lt; {{ $page->getPrevious()->title }}</a>
+ @endif
+ @if ($page->getNext())
+ <a href="{{ $page->getNext()->getPath() }}">{{ $page->getNext()->title }} &gt;&gt;</a>
+ @endif
+ </nav>
@endsection