diff options
| author | David T. Sadler <davidtsadler@googlemail.com> | 2020-02-20 23:17:42 +0000 |
|---|---|---|
| committer | David T. Sadler <davidtsadler@googlemail.com> | 2020-02-20 23:17:42 +0000 |
| commit | a12d45489a078f8067489ef8b42745c7b46e9a9a (patch) | |
| tree | 11f837fd0bfe1e6b6402b267c3046acd07d75475 /source/_layouts/master.blade.php | |
| parent | 498913806182905cc0c14bd12a61f9af26fa16b4 (diff) | |
Work on basic site layout
Diffstat (limited to 'source/_layouts/master.blade.php')
| -rw-r--r-- | source/_layouts/master.blade.php | 80 |
1 files changed, 11 insertions, 69 deletions
diff --git a/source/_layouts/master.blade.php b/source/_layouts/master.blade.php index 039fa82..33b32cc 100644 --- a/source/_layouts/master.blade.php +++ b/source/_layouts/master.blade.php @@ -1,74 +1,16 @@ -<!DOCTYPE html> +<!doctype html> <html lang="en"> <head> - <meta charset="utf-8"> - <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> - <meta http-equiv="x-ua-compatible" content="ie=edge"> - <meta name="description" content="{{ $page->meta_description ?? $page->siteDescription }}"> - - <meta property="og:title" content="{{ $page->title ? $page->title . ' | ' : '' }}{{ $page->siteName }}"/> - <meta property="og:type" content="website" /> - <meta property="og:url" content="{{ $page->getUrl() }}"/> - <meta property="og:description" content="{{ $page->siteDescription }}" /> - - <title>{{ $page->title ? $page->title . ' | ' : '' }}{{ $page->siteName }}</title> - - <link rel="home" href="{{ $page->baseUrl }}"> - <link rel="icon" href="/favicon.ico"> - <link href="/blog/feed.atom" type="application/atom+xml" rel="alternate" title="{{ $page->siteName }} Atom Feed"> - - @stack('meta') - - @if ($page->production) - <!-- Insert analytics code here --> - @endif - - <link href="https://fonts.googleapis.com/css?family=Nunito+Sans:300,300i,400,400i,700,700i,800,800i" rel="stylesheet"> <link rel="stylesheet" href="{{ mix('css/main.css', 'assets/build') }}"> </head> - - <body class="flex flex-col justify-between min-h-screen bg-gray-100 text-gray-800 leading-normal font-sans"> - <header class="flex items-center shadow bg-white border-b h-24 py-4" role="banner"> - <div class="container flex items-center max-w-8xl mx-auto px-4 lg:px-8"> - <div class="flex items-center"> - <a href="/" title="{{ $page->siteName }} home" class="inline-flex items-center"> - <img class="h-8 md:h-10 mr-3" src="/assets/img/logo.svg" alt="{{ $page->siteName }} logo" /> - - <h1 class="text-lg md:text-2xl text-blue-800 font-semibold hover:text-blue-600 my-0">{{ $page->siteName }}</h1> - </a> - </div> - - <div id="vue-search" class="flex flex-1 justify-end items-center"> - <search></search> - - @include('_nav.menu') - - @include('_nav.menu-toggle') - </div> - </div> - </header> - - @include('_nav.menu-responsive') - - <main role="main" class="flex-auto w-full container max-w-4xl mx-auto py-16 px-6"> - @yield('body') - </main> - - <footer class="bg-white text-center text-sm mt-12 py-4" role="contentinfo"> - <ul class="flex flex-col md:flex-row justify-center list-none"> - <li class="md:mr-2"> - © <a href="https://tighten.co" title="Tighten website">Tighten</a> {{ date('Y') }}. - </li> - - <li> - Built with <a href="http://jigsaw.tighten.co" title="Jigsaw by Tighten">Jigsaw</a> - and <a href="https://tailwindcss.com" title="Tailwind CSS, a utility-first CSS framework">Tailwind CSS</a>. - </li> - </ul> - </footer> - - <script src="{{ mix('js/main.js', 'assets/build') }}"></script> - - @stack('scripts') - </body> + <body> + <article>@yield('article')</article> + <aside> + <ol> + @foreach ($page->allCategories($posts) as $category) + <li><a href="/blog/categories/{{ $category }}">{{ $category }}</a></li> + @endforeach + </ol> + </aside> + </body> </html> |
